-
Notifications
You must be signed in to change notification settings - Fork 69
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
Integrate with MinTxsInBlock #558
Conversation
baseapp/params.go
Outdated
@@ -48,6 +48,10 @@ func ValidateBlockParams(i interface{}) error { | |||
return fmt.Errorf("block maximum gas must be greater than or equal to -1: %d", v.MaxGas) | |||
} | |||
|
|||
if v.MinTxsInBlock < 0 { | |||
return fmt.Errorf("block min txs in block must be positive: %d", v.MinTxsInBlock) |
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.
nit - "non-negative"
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.
updated
MaxGas: exported.ConsensusParams.Block.MaxGas, | ||
MaxBytes: exported.ConsensusParams.Block.MaxBytes, | ||
MaxGas: exported.ConsensusParams.Block.MaxGas, | ||
MinTxsInBlock: exported.ConsensusParams.Block.MinTxsInBlock, |
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.
do we need a migration handler for thsi?
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.
no, just a param update proposal
8c72bce
to
e3ebce4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #558 +/- ##
=======================================
Coverage 54.86% 54.87%
=======================================
Files 631 631
Lines 54946 54951 +5
=======================================
+ Hits 30145 30153 +8
+ Misses 22644 22640 -4
- Partials 2157 2158 +1
|
Describe your changes and provide context
Pass through MinTxsInBlock between app side and tendermint side
Testing performed to validate your change
integrated with sei-chain and tested on local sei