Allow coding shred index to be different than data shred index (#7438)
* Allow coding shred index to be different than data shred index * move fec_set_index to shred's common header * fix bench
This commit is contained in:
@ -363,7 +363,7 @@ mod test {
|
||||
);
|
||||
|
||||
// If it's a coding shred, test that slot >= root
|
||||
let (common, coding) = Shredder::new_coding_shred_header(5, 5, 6, 6, 0, 0);
|
||||
let (common, coding) = Shredder::new_coding_shred_header(5, 5, 5, 6, 6, 0, 0);
|
||||
let mut coding_shred =
|
||||
Shred::new_empty_from_header(common, DataShredHeader::default(), coding);
|
||||
Shredder::sign_shred(&leader_keypair, &mut coding_shred);
|
||||
|
Reference in New Issue
Block a user