From d8e885f4259e6c7db420cce513cb34ebf961073d Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 5 May 2020 08:29:24 -0700 Subject: [PATCH] Enable inflation on testnet effective epoch 44 (#9879) --- genesis-programs/src/lib.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/genesis-programs/src/lib.rs b/genesis-programs/src/lib.rs index 2d2c18169f..df20c5f45e 100644 --- a/genesis-programs/src/lib.rs +++ b/genesis-programs/src/lib.rs @@ -26,7 +26,17 @@ pub fn get_inflation(operating_mode: OperatingMode, epoch: Epoch) -> Option { + 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())