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

Add V2 consensus upgrade for block size limit #2378

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

mirayadav
Copy link
Contributor

@mirayadav mirayadav commented Oct 19, 2022

Summary

Enforce block size limit of 2 MB.

Added a new consensus upgrade for this limit on block 255000, estimated to occur on November 2, 2022 at 1:30 pm ET (block activation height updated in #2438). All users will need to upgrade by then.

Testing Plan

Added tests to verifier.test.ts to confirm the block size limit is enforced after consensus upgrade V2.

Can also test by lowering the activation height (V2_MAX_BLOCK_SIZE) and max block size (MAX_BLOCK_SIZE_BYTES) and trying to sync - all blocks larger than max size set should be marked as invalid.

Breaking Change

[X] Yes

@mirayadav mirayadav requested a review from a team as a code owner October 19, 2022 04:02
Base automatically changed from limit-block-size-mining-manager to staging October 20, 2022 01:36
@mirayadav mirayadav changed the base branch from staging to master October 21, 2022 05:12
@mirayadav mirayadav changed the base branch from master to staging October 21, 2022 05:12
@mirayadav mirayadav merged commit d0db67a into staging Oct 21, 2022
@mirayadav mirayadav deleted the add-block-size-consensus branch October 21, 2022 21:57
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.

None yet

2 participants