diff --git a/ledger/src/shred.rs b/ledger/src/shred.rs index 6505789b0e..70620cdbd5 100644 --- a/ledger/src/shred.rs +++ b/ledger/src/shred.rs @@ -38,12 +38,8 @@ thread_local!(static PAR_THREAD_POOL: RefCell = RefCell::new(rayon:: pub const DATA_SHRED: u8 = 0b1010_0101; pub const CODING_SHRED: u8 = 0b0101_1010; -/// This limit comes from reed solomon library, but unfortunately they don't have -/// a public constant defined for it. -pub const MAX_DATA_SHREDS_PER_FEC_BLOCK: u32 = 16; - -/// Based on rse benchmarks, the optimal erasure config uses 16 data shreds and 4 coding shreds -pub const RECOMMENDED_FEC_RATE: f32 = 0.25; +pub const MAX_DATA_SHREDS_PER_FEC_BLOCK: u32 = 32; +pub const RECOMMENDED_FEC_RATE: f32 = 1.0; const LAST_SHRED_IN_SLOT: u8 = 0b0000_0001; pub const DATA_COMPLETE_SHRED: u8 = 0b0000_0010;