-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(baseapp): allow empty consensus params #18531
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -720,6 +720,17 @@ func TestGetMaximumBlockGas(t *testing.T) { | |||||
require.Panics(t, func() { suite.baseApp.GetMaximumBlockGas(ctx) }) | ||||||
} | ||||||
|
||||||
func TestGetEmptyConsensusParmas(t *testing.T) { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a typo in the test function name - func TestGetEmptyConsensusParmas(t *testing.T) {
+ func TestGetEmptyConsensusParams(t *testing.T) { Committable suggestion
Suggested change
|
||||||
suite := NewBaseAppSuite(t) | ||||||
_, err := suite.baseApp.InitChain(&abci.RequestInitChain{}) | ||||||
require.NoError(t, err) | ||||||
ctx := suite.baseApp.NewContext(true) | ||||||
|
||||||
cp := suite.baseApp.GetConsensusParams(ctx) | ||||||
require.Equal(t, cmtproto.ConsensusParams{}, cp) | ||||||
require.Equal(t, uint64(0), suite.baseApp.GetMaximumBlockGas(ctx)) | ||||||
} | ||||||
|
||||||
func TestLoadVersionPruning(t *testing.T) { | ||||||
logger := log.NewNopLogger() | ||||||
pruningOptions := pruningtypes.NewCustomPruningOptions(10, 15) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change potentially affects state.
Call sequence: