[cherry-picked] abci++: add consensus parameter logic to control vote extension require height (#8547)

This PR makes vote extensions optional within Tendermint. A new ConsensusParams field, called ABCIParams.VoteExtensionsEnableHeight, has been added to toggle whether or not extensions should be enabled or disabled depending on the current height of the consensus engine. Related to: #8453
This commit is contained in:
William Banfield
2022-11-30 21:19:16 +01:00
committed by Sergio Mena
parent 81bcf50690
commit 288ba2e76a
32 changed files with 1374 additions and 329 deletions
+13
View File
@@ -0,0 +1,13 @@
package test
import (
"github.com/tendermint/tendermint/types"
)
// ConsensusParams returns a default set of ConsensusParams that are suitable
// for use in testing
func ConsensusParams() *types.ConsensusParams {
c := types.DefaultConsensusParams()
c.ABCI.VoteExtensionsEnableHeight = 1
return c
}