Skip to content

Conversation

@iuwqyir
Copy link
Contributor

@iuwqyir iuwqyir commented Apr 11, 2025

TL;DR

Added support for EIP-4844 blob transaction fields in the transaction data model.

What changed?

  • Added two new fields to the Transaction struct:

    • MaxFeePerBlobGas - to store the maximum fee per blob gas
    • BlobVersionedHashes - to store the versioned hashes of the blobs
  • Updated the TransactionModel struct to include these new fields

  • Modified the transaction serialization logic to handle the new blob-related fields

  • Updated the ClickHouse database schema and insertion logic to store the new fields

How to test?

  1. Process transactions from a network that supports EIP-4844 (like Ethereum mainnet post-Dencun upgrade)
  2. Verify that blob transactions are correctly stored with their MaxFeePerBlobGas and BlobVersionedHashes values
  3. Query the transactions table to confirm the new fields are populated for blob transactions

Why make this change?

This change adds support for EIP-4844 (blob transactions) introduced in the Ethereum Dencun upgrade. Blob transactions include additional fields that need to be captured and stored in our system to maintain complete transaction data. Without these fields, we would be missing critical information about blob transactions, which are important for layer 2 rollups and other scaling solutions.

Copy link
Contributor Author

iuwqyir commented Apr 11, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@iuwqyir iuwqyir marked this pull request as ready for review April 11, 2025 07:39
@iuwqyir iuwqyir force-pushed the 04-11-add_blob_fields_to_transactions branch from 3ec8cf0 to 8f8173d Compare April 11, 2025 10:48
@iuwqyir iuwqyir force-pushed the 04-11-add_blob_fields_to_transactions branch from 8f8173d to 82e91d2 Compare April 11, 2025 11:45
@iuwqyir iuwqyir merged commit 2fc72a3 into main Apr 11, 2025
5 checks passed
@iuwqyir iuwqyir deleted the 04-11-add_blob_fields_to_transactions branch April 11, 2025 12:01
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.

3 participants