Enable inflation on testnet effective epoch 44 (#9879)

This commit is contained in:
Michael Vines
2020-05-05 08:29:24 -07:00
committed by GitHub
parent 28fa5149b7
commit d8e885f425

View File

@ -26,7 +26,17 @@ pub fn get_inflation(operating_mode: OperatingMode, epoch: Epoch) -> Option<Infl
None
}
}
OperatingMode::Stable | OperatingMode::Preview => {
OperatingMode::Preview => {
if epoch == 0 {
// No inflation at epoch 0
Some(Inflation::new_disabled())
} else if epoch == 44 {
Some(Inflation::default())
} else {
None
}
}
OperatingMode::Stable => {
if epoch == 0 {
// No inflation at epoch 0
Some(Inflation::new_disabled())