From e599a903337d0646b7061698fe99821c328087dc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2019 17:20:22 -0800 Subject: [PATCH] Increase FEC ratio to 32:32 (#6800) (#6804) automerge --- ledger/src/shred.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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;