summaryrefslogtreecommitdiff
path: root/config/consensus.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/consensus.go')
-rw-r--r--config/consensus.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/consensus.go b/config/consensus.go
index 1f553d20e..1bd7bd774 100644
--- a/config/consensus.go
+++ b/config/consensus.go
@@ -394,6 +394,9 @@ type ConsensusParams struct {
// MaxProposedExpiredOnlineAccounts is the maximum number of online accounts, which need
// to be taken offline, that would be proposed to be taken offline.
MaxProposedExpiredOnlineAccounts int
+
+ // When rewards rate changes, use the new value immediately.
+ RewardsCalculationFix bool
}
// PaysetCommitType enumerates possible ways for the block header to commit to
@@ -1054,6 +1057,8 @@ func initConsensusProtocols() {
vFuture.MaxProposedExpiredOnlineAccounts = 32
+ vFuture.RewardsCalculationFix = true
+
Consensus[protocol.ConsensusFuture] = vFuture
}