From 3412993e30b285aff198ee73a7657563712e43f9 Mon Sep 17 00:00:00 2001 From: andicrypt <57678065+andicrypt@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:45:23 +0700 Subject: [PATCH] cmd/flags: update max vote amount per block to 64 (#465) After Tripp, the voter set is extended to all validator candidate, whose upper bound is 64. However, currently, the maximum number of votes per block is constrained by the flag votepool.maxcurvoteperblock (of value 22), it should be updated to 64 in default setting. For the same reason, the maxFutureVoteAmountPerBlock hardcode is also updated from 50 to 64. --- cmd/utils/flags.go | 2 +- core/vote/vote_pool.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index a7c3b246fe..fcee664e04 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1020,7 +1020,7 @@ var ( MaxCurVoteAmountPerBlock = &cli.IntFlag{ Name: "votepool.maxcurvoteperblock", Usage: "The maximum finality vote per current block", - Value: 22, + Value: 64, Category: flags.FastFinalityCategory, } diff --git a/core/vote/vote_pool.go b/core/vote/vote_pool.go index 03de97c1bc..1d7a0b5da1 100644 --- a/core/vote/vote_pool.go +++ b/core/vote/vote_pool.go @@ -15,7 +15,7 @@ import ( ) const ( - maxFutureVoteAmountPerBlock = 50 + maxFutureVoteAmountPerBlock = 64 maxFutureVotePerPeer = 25 voteBufferForPut = 256