Enable new fork choice on mainnet, 400_000 slots into epoch 61 (#11312)

Co-authored-by: Carl <carl@solana.com>
This commit is contained in:
carllin 2020-07-31 13:37:58 -07:00 committed by GitHub
parent c421d7f1b8
commit d7e961dac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1860,7 +1860,8 @@ impl ReplayStage {
pub fn get_unlock_switch_vote_slot(operating_mode: OperatingMode) -> Slot {
match operating_mode {
OperatingMode::Development => 0,
OperatingMode::Stable => std::u64::MAX / 2,
// 400_000 slots into epoch 61
OperatingMode::Stable => 26_752_000,
// Epoch 63
OperatingMode::Preview => 21_692_256,
}
@ -1869,7 +1870,8 @@ impl ReplayStage {
pub fn get_unlock_heaviest_subtree_fork_choice(operating_mode: OperatingMode) -> Slot {
match operating_mode {
OperatingMode::Development => 0,
OperatingMode::Stable => std::u64::MAX / 2,
// 400_000 slots into epoch 61
OperatingMode::Stable => 26_752_000,
// Epoch 63
OperatingMode::Preview => 21_692_256,
}