execution/protocol: a sender with an EIP-7702 designator is accepted before Prague
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- backend, blockchain
Research direction
Start in execution/protocol/txn_executor.go at the preCheck sender code exemption, and compare it with the Prague-gated exemption in execution/builder/exec.go. Reproduce with the EIP-7702 sender fixture using evm statetest for a pre-Prague fork. Done when pre-Prague execution returns SENDER_NOT_EOA and the Prague case still passes.
Written by the indexing model from the issue text.
Description
Before Prague, Erigon accepts a transaction from a sender whose code is an EIP-7702 delegation designator. EIP-3607 rejects every sender that has code. EIP-7702 adds the exemption for the designator, so the exemption starts at Prague.
EELS rejects the sender with "not EOA" at every fork before Prague (cancun/fork.py L500-L501). From Prague, it exempts only a valid designator (prague/fork.py L532-L536).
Erigon's block builder already applies the exemption only from Prague (execution/builder/exec.go L479-L496). The consensus path exempts the designator at every fork (execution/protocol/txn_executor.go L273-L292). So Erigon does not build such a block. But when it executes such a block, it accepts the transaction. The payload is then INVALID only because the gas used does not match the header.
Priority: low. Only a genesis allocation can give a sender a designator before Prague.
Test: the open PR ethereum/execution-specs#4028 adds test_sender_with_delegation_designator. The sender holds the 23-byte designator and sends a plain value transfer. Before Prague, the test expects SENDER_NOT_EOA.
Tested: Erigon main ecd128a6.
evm stateteston the filled fixture, for each fork from Frontier to Cancun:expected error "TransactionException.SENDER_NOT_EOA", got no error. The Prague case passes.- Engine API: Erigon rejects the block, but only for the gas mismatch:
gas used by execution: 21000, in header: 0.
To reproduce, fill the test from the branch of ethereum/execution-specs#4028 and run evm statetest on the output. The second command runs the Cancun fixture. Repeat it for each for_<fork> directory, from Frontier to Cancun:
uv run fill tests/prague/eip7702_set_code_tx/test_set_code_sender_check.py --until Prague
evm statetest fixtures/state_tests/for_cancun/prague/eip7702_set_code_tx/set_code_sender_check/sender_with_delegation_designator.json
A possible fix is a fork gate on the exemption in preCheck, where rules is already in scope:
if !ok || !rules.IsPrague {
- Dominant language
- Go
- Stars
- 3.6k
- Forks
- 1.6k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 820
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from erigontech/erigon
-
flaky test
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
erigontech/erigon#26230 ·
Maintainers usually reply within 1 day
-
txnprovider/txpool: pending nonce counts past gaps in the poolPossibly taken @yperbasis claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
erigontech/erigon#26014 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
tracing: expose custom error selector and raw payload in callTracer revertReasonPossibly taken @lupin012 claimed this 9 days ago. OpenRPC
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
erigontech/erigon#25928 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
txnprovider/txpool: remove redundant blob/commitment length checkPossibly taken @yperbasis claimed this 14 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
erigontech/erigon#25432 ·
Maintainers usually reply within 1 day
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 78/100
erigontech/erigon#20922 · 1 comment ·
Maintainers usually reply within 1 day
All issues in erigontech/erigon
Similar issues
-
enhancement exporter/awskinesis needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
open-telemetry/opentelemetry-collector-contrib#53334 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
SocialGouv/iterion#3376 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
seaweedfs/seaweedfs#12740 · 2 comments ·
Maintainers usually reply within 1 day
-
area:indexer bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
seanb4t/codegraph-go#385 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day