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

This commit is contained in:
Ryo Onodera
2020-09-15 14:13:40 +09:00
committed by GitHub
parent c1e76fd5f7
commit 7d48339b7c

View File

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