Skip to content

Fix/consensus-data-size#528

Merged
GalRogozinski merged 4 commits intomainfrom
fix/consensus-data-size
Mar 17, 2025
Merged

Fix/consensus-data-size#528
GalRogozinski merged 4 commits intomainfrom
fix/consensus-data-size

Conversation

@GalRogozinski
Copy link
Contributor

Take into account blobs and execution requests

// Upcoming 40M gas limit produces 40M / 16 (call data cost) = 2,500,000 bytes (https://eips.ethereum.org/EIPS/eip-4488)
// Explanation on why transaction sizes are so big https://github.com/ethereum/consensus-specs/pull/2686
// Adding to the rest of the data (see script below), we have: 1,315,964 + 2,500,000 = 3,815,964 bytes ~<= 2^22
// Adding to the rest of the data (see script below), we have: 3,291,849 + 2,500,000 = 5,791,849 bytes ~<= 2^23
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note new figure

@GalRogozinski GalRogozinski marked this pull request as ready for review March 16, 2025 10:28

if test.ExpectedRoot != hex.EncodeToString(r[:]) {
fmt.Printf("expected: %v\n", test.ExpectedRoot)
fmt.Printf("actuak: %v\n", hex.EncodeToString(r[:]))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Copy link
Contributor Author

@GalRogozinski GalRogozinski left a comment

Choose a reason for hiding this comment

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

Once I change according to review I get:
Field DataSSZ is different than ssz tag size: 8388836 != 8388608

@GalRogozinski GalRogozinski merged commit 18da6c7 into main Mar 17, 2025
2 checks passed
@GalRogozinski GalRogozinski deleted the fix/consensus-data-size branch March 17, 2025 12:53
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.

5 participants