Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: change consensus.block.max_size to 4 MB #2288

Merged
merged 6 commits into from
Oct 17, 2023

Conversation

robert-zaremba
Copy link
Member

@robert-zaremba robert-zaremba commented Oct 17, 2023

Description

As per Amulet team analysis, the existing 21MB block size may expose security risk and teams should consider reducing it. In this PR we reduce it to 4 MB, giving enough room for Cosmowasm deployments and big transactions. Blocks full of oracle txs are less than 40kB.

@robert-zaremba robert-zaremba requested a review from a team as a code owner October 17, 2023 11:24
@robert-zaremba robert-zaremba changed the title chore: change consensus.block.max_size to 10MB chore: change consensus.block.max_size to 6MB Oct 17, 2023
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #2288 (71ee975) into main (7f05ad4) will decrease coverage by 4.90%.
Report is 262 commits behind head on main.
The diff coverage is 83.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2288      +/-   ##
==========================================
- Coverage   75.38%   70.49%   -4.90%     
==========================================
  Files         100      170      +70     
  Lines        8025    12882    +4857     
==========================================
+ Hits         6050     9081    +3031     
- Misses       1589     3198    +1609     
- Partials      386      603     +217     
Files Coverage Δ
ante/ante.go 66.66% <100.00%> (+18.45%) ⬆️
ante/fee.go 80.00% <100.00%> (+1.64%) ⬆️
ante/spam_prevention.go 75.92% <ø> (ø)
app/inflation/inflation.go 100.00% <100.00%> (ø)
util/coin/utoken.go 100.00% <100.00%> (ø)
x/incentive/client/tests/suite.go 100.00% <100.00%> (ø)
x/incentive/client/tests/tests.go 100.00% <100.00%> (ø)
x/incentive/codec.go 47.82% <ø> (+9.89%) ⬆️
x/incentive/genesis.go 92.48% <100.00%> (+79.14%) ⬆️
x/incentive/keeper/bond.go 92.50% <ø> (ø)
... and 45 more

... and 95 files with indirect coverage changes

Copy link
Collaborator

@gsk967 gsk967 left a comment

Choose a reason for hiding this comment

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

LGTM

@robert-zaremba robert-zaremba changed the title chore: change consensus.block.max_size to 6MB chore: change consensus.block.max_size to 4 MB Oct 17, 2023
@robert-zaremba robert-zaremba added this pull request to the merge queue Oct 17, 2023
Merged via the queue into main with commit 08d3247 Oct 17, 2023
@robert-zaremba robert-zaremba deleted the robert/max-block-size branch October 17, 2023 18:08
facundomedica pushed a commit that referenced this pull request Oct 30, 2023
* chore: change consensus.block.max_size to 10MB

* added more notes

* changelog

* update release notes and changelog

* release notes: validator notes

---------

Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants