Skip to content
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

Merged
merged 2 commits into from
Jan 6, 2025
Merged

Integrate with MinTxsInBlock #558

merged 2 commits into from
Jan 6, 2025

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Dec 27, 2024

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

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - "non-negative"

Copy link
Collaborator Author

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,
Copy link
Contributor

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?

Copy link
Collaborator Author

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

@codchen codchen force-pushed the integrate-min-tx-in-block branch from 8c72bce to e3ebce4 Compare January 6, 2025 04:26
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.

Project coverage is 54.87%. Comparing base (beceb85) to head (e3ebce4).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
baseapp/params.go 0.00% 2 Missing and 1 partial ⚠️
server/export.go 50.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           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     
Files with missing lines Coverage Δ
baseapp/params.go 39.13% <0.00%> (-1.32%) ⬇️
server/export.go 42.75% <50.00%> (+0.10%) ⬆️

... and 2 files with indirect coverage changes

@codchen codchen merged commit 7160581 into main Jan 6, 2025
14 of 15 checks passed
@codchen codchen deleted the integrate-min-tx-in-block branch January 6, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants