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

feat: add EIP-4844 support #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

emostov
Copy link

@emostov emostov commented Feb 5, 2025

Closes #112

This PR adds support for eip4844 transactions. eip4844 transactions can be specified with a new --tx-type cli argument. By default, it will send eip1559 transactions.

Adding blob transactions doesn't fit cleanly into the current default scenario due to the nonce gap restrictions on eip4844 transactions: eip4844 transactions are only accepted if they're gapless, meaning the previous nonce of the transaction (tx.nonce -1) must either be in the pool or match the on chain nonce of the sender. Due to the fact we send a batch of transactions all at once by spawning tokio tasks, we can guarantee they hit the pool in the correct order.

To get around this you can set --num-txs 1. Not sure of a good work around without a bigger refactor.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@emostov emostov force-pushed the zeke/eip4844 branch 2 times, most recently from 72fa68a to 47367a7 Compare February 6, 2025 04:22
@emostov emostov changed the title [WIP] feat: add EIP-4844 support feat: add EIP-4844 support Feb 6, 2025
@emostov emostov marked this pull request as ready for review February 6, 2025 04:23
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.

EIP-4844 tx support
1 participant