Increase FEC ratio to 32:32 (#6800) (#6804)

automerge
This commit is contained in:
mergify[bot]
2019-11-07 17:20:22 -08:00
committed by Grimes
parent efb8b6bf2f
commit e599a90333

View File

@ -38,12 +38,8 @@ thread_local!(static PAR_THREAD_POOL: RefCell<ThreadPool> = RefCell::new(rayon::
pub const DATA_SHRED: u8 = 0b1010_0101; pub const DATA_SHRED: u8 = 0b1010_0101;
pub const CODING_SHRED: u8 = 0b0101_1010; pub const CODING_SHRED: u8 = 0b0101_1010;
/// This limit comes from reed solomon library, but unfortunately they don't have pub const MAX_DATA_SHREDS_PER_FEC_BLOCK: u32 = 32;
/// a public constant defined for it. pub const RECOMMENDED_FEC_RATE: f32 = 1.0;
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;
const LAST_SHRED_IN_SLOT: u8 = 0b0000_0001; const LAST_SHRED_IN_SLOT: u8 = 0b0000_0001;
pub const DATA_COMPLETE_SHRED: u8 = 0b0000_0010; pub const DATA_COMPLETE_SHRED: u8 = 0b0000_0010;