Skip to content

Commit

Permalink
feat(genesis): disable vote extension by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Narangde committed Oct 6, 2024
1 parent 4dc73c8 commit aade238
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion client/genutil/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "github.com/cometbft/cometbft/types"
// DefaultConsensusParams returns the default cometBFT consensus params for story protocol.
func DefaultConsensusParams() *types.ConsensusParams {
resp := types.DefaultConsensusParams()
resp.ABCI.VoteExtensionsEnableHeight = 1 // Enable vote extensions from the start.
resp.Validator.PubKeyTypes = []string{types.ABCIPubKeyTypeSecp256k1} // Only k1 keys.
resp.Block.MaxBytes = -1 // Disable max block bytes, since we MUST include the whole EVM block, which is limited by max gas per block.

Expand Down
2 changes: 1 addition & 1 deletion lib/netconf/iliad/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"app": "0"
},
"abci": {
"vote_extensions_enable_height": "1"
"vote_extensions_enable_height": "0"
}
},
"app_hash": "",
Expand Down
2 changes: 1 addition & 1 deletion lib/netconf/local/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"app": "0"
},
"abci": {
"vote_extensions_enable_height": "1"
"vote_extensions_enable_height": "0"
}
},
"app_hash": "",
Expand Down
2 changes: 1 addition & 1 deletion lib/tutil/testdata/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]
},
"abci": {
"vote_extensions_enable_height": "1"
"vote_extensions_enable_height": "0"
},
"version": {}
},
Expand Down

0 comments on commit aade238

Please sign in to comment.