Enable eager-rent-collect-across-gapped-epochs bugfix (#12219) (#12222)

(cherry picked from commit 7d48339b7c)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2020-09-15 06:14:35 +00:00
committed by GitHub
parent b5c7ad3a9b
commit d9d8ec480a

View File

@ -2331,7 +2331,7 @@ impl Bank {
let should_enable = match self.cluster_type() { let should_enable = match self.cluster_type() {
ClusterType::Development => true, ClusterType::Development => true,
ClusterType::Devnet => true, ClusterType::Devnet => true,
ClusterType::Testnet => current_epoch >= Epoch::max_value(), ClusterType::Testnet => current_epoch >= 97,
ClusterType::MainnetBeta => { ClusterType::MainnetBeta => {
#[cfg(not(test))] #[cfg(not(test))]
let should_enable = current_epoch >= Epoch::max_value(); let should_enable = current_epoch >= Epoch::max_value();