Split commitment module (#10541)

automerge
This commit is contained in:
Greg Fitzgerald
2020-06-12 18:16:10 -06:00
committed by GitHub
parent b7da3115dd
commit 8dd5384d6d
9 changed files with 478 additions and 463 deletions

View File

@@ -1,4 +1,5 @@
use crate::{
commitment::VOTE_THRESHOLD_SIZE,
progress_map::{LockoutIntervals, ProgressMap},
pubkey_references::PubkeyReferences,
};
@@ -58,7 +59,6 @@ impl SwitchForkDecision {
}
pub const VOTE_THRESHOLD_DEPTH: usize = 8;
pub const VOTE_THRESHOLD_SIZE: f64 = 2f64 / 3f64;
pub const SWITCH_FORK_THRESHOLD: f64 = 0.38;
#[derive(Default, Debug, Clone)]