Fix erasure (#10095)

* Fix bad FEC blocks

* Add test

Co-authored-by: Carl <carl@solana.com>
This commit is contained in:
carllin
2020-05-19 16:13:12 -07:00
committed by GitHub
parent e66b5d09db
commit 439fd30840
3 changed files with 189 additions and 45 deletions

View File

@ -293,13 +293,8 @@ mod tests {
);
assert!(!packet.meta.discard);
let coding = solana_ledger::shred::Shredder::generate_coding_shreds(
slot,
1.0f32,
&[shred],
10,
false,
);
let coding =
solana_ledger::shred::Shredder::generate_coding_shreds(slot, 1.0f32, &[shred], 10);
coding[0].copy_to_packet(&mut packet);
ShredFetchStage::process_packet(
&mut packet,