Skip to content

Commit 6eef8b5

Browse files
committed
few final touches.
1 parent a833a2f commit 6eef8b5

File tree

22 files changed

+242
-110
lines changed

22 files changed

+242
-110
lines changed

agreement/msgp_gen.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agreement/msgp_gen_test.go

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compactcert/msgp_gen_test.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/consensus.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ type ConsensusParams struct {
392392

393393
EnableExtraPagesOnAppUpdate bool
394394

395-
// MaxExpiredAccountsToProcess is the maximum number of accounts to process in one block
396-
// when seeing if accounts should be taken offline
397-
MaxExpiredAccountsToProcess int
395+
// MaxProposedExpiredOnlineAccounts is the maximum number of online accounts, which need
396+
// to be taken offline, that would be proposed to be taken offline.
397+
MaxProposedExpiredOnlineAccounts int
398398
}
399399

400400
// PaysetCommitType enumerates possible ways for the block header to commit to
@@ -469,9 +469,9 @@ var MaxExtraAppProgramLen int
469469
//supported supported by any of the consensus protocols. used for decoding purposes.
470470
var MaxAvailableAppProgramLen int
471471

472-
// MaxExpiredAccountsToProcess is the maximum number of accounts to process in one block
473-
// when seeing if accounts should be taken offline
474-
var MaxExpiredAccountsToProcess int
472+
// MaxProposedExpiredOnlineAccounts is the maximum number of online accounts, which need
473+
// to be taken offline, that would be proposed to be taken offline.
474+
var MaxProposedExpiredOnlineAccounts int
475475

476476
func checkSetMax(value int, curMax *int) {
477477
if value > *curMax {
@@ -509,7 +509,7 @@ func checkSetAllocBounds(p ConsensusParams) {
509509
// Its value is much larger than any possible reasonable MaxLogCalls value in future
510510
checkSetMax(p.MaxAppProgramLen, &MaxLogCalls)
511511
checkSetMax(p.MaxInnerTransactions, &MaxInnerTransactions)
512-
checkSetMax(p.MaxExpiredAccountsToProcess, &MaxExpiredAccountsToProcess)
512+
checkSetMax(p.MaxProposedExpiredOnlineAccounts, &MaxProposedExpiredOnlineAccounts)
513513
}
514514

515515
// SaveConfigurableConsensus saves the configurable protocols file to the provided data directory.
@@ -1054,7 +1054,7 @@ func initConsensusProtocols() {
10541054
// Enable TEAL 6 / AVM 1.1
10551055
vFuture.LogicSigVersion = 6
10561056

1057-
vFuture.MaxExpiredAccountsToProcess = 128
1057+
vFuture.MaxProposedExpiredOnlineAccounts = 32
10581058

10591059
Consensus[protocol.ConsensusFuture] = vFuture
10601060
}

crypto/compactcert/msgp_gen_test.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)