Skip to content

Conversation

@qj0r9j0vc2
Copy link
Member

Summary

  • Add calculate_size() method to Block using alloy-consensus RLP encoding
  • Replace hardcoded size values with proper RLP byte count calculation
  • Add alloy-rlp dependency for accurate Ethereum header serialization

Test plan

  • All storage tests pass (95 tests)
  • All RPC integration tests pass (16 tests)
  • Size field now returns actual RLP-encoded header length

Implement proper block size calculation using alloy-consensus RLP
encoding for Blockscout compatibility. The size field now reflects
the actual RLP-encoded header byte count instead of hardcoded values.
@qj0r9j0vc2 qj0r9j0vc2 self-assigned this Jan 25, 2026
@qj0r9j0vc2 qj0r9j0vc2 merged commit fa010aa into main Jan 25, 2026
9 checks passed
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