diff options
Diffstat (limited to 'config/consensus.go')
-rw-r--r-- | config/consensus.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/consensus.go b/config/consensus.go index 99cd1884d..f0ffa1a51 100644 --- a/config/consensus.go +++ b/config/consensus.go @@ -391,6 +391,10 @@ type ConsensusParams struct { EnableKeyregCoherencyCheck bool EnableExtraPagesOnAppUpdate bool + + // MaxProposedExpiredOnlineAccounts is the maximum number of online accounts, which need + // to be taken offline, that would be proposed to be taken offline. + MaxProposedExpiredOnlineAccounts int } // PaysetCommitType enumerates possible ways for the block header to commit to @@ -465,6 +469,10 @@ var MaxExtraAppProgramLen int //supported supported by any of the consensus protocols. used for decoding purposes. var MaxAvailableAppProgramLen int +// MaxProposedExpiredOnlineAccounts is the maximum number of online accounts, which need +// to be taken offline, that would be proposed to be taken offline. +var MaxProposedExpiredOnlineAccounts int + func checkSetMax(value int, curMax *int) { if value > *curMax { *curMax = value @@ -501,6 +509,7 @@ func checkSetAllocBounds(p ConsensusParams) { // Its value is much larger than any possible reasonable MaxLogCalls value in future checkSetMax(p.MaxAppProgramLen, &MaxLogCalls) checkSetMax(p.MaxInnerTransactions, &MaxInnerTransactions) + checkSetMax(p.MaxProposedExpiredOnlineAccounts, &MaxProposedExpiredOnlineAccounts) } // SaveConfigurableConsensus saves the configurable protocols file to the provided data directory. @@ -1045,6 +1054,8 @@ func initConsensusProtocols() { // Enable TEAL 6 / AVM 1.1 vFuture.LogicSigVersion = 6 + vFuture.MaxProposedExpiredOnlineAccounts = 32 + Consensus[protocol.ConsensusFuture] = vFuture } |