Skip to content

Conversation

@Pana
Copy link
Contributor

@Pana Pana commented Mar 27, 2025

This PR is a mirror of Geth's relative PR ethereum/go-ethereum#31073

Which add two new rules for 7702 TX:

  1. In addition to tracking transactions, the pool also tracks a set of pending SetCode
    authorizations (EIP7702). As a standard rule, any account with a deployed
    delegation or an in-flight authorization to deploy a delegation will only be allowed a
    single transaction slot instead of the standard number. This is due to the possibility
    of the account being sweeped by an unrelated account.

  2. In case the pool is tracking a pending / queued transaction from a specific account, it
    will reject new transactions with delegations from that account with standard in-flight
    transactions.

Additionally, the identifiers were moved from the PoolInner struct to the TxPool struct because they are needed to obtain the senderId of the auth signature address, which is then used to determine whether they have transactions in the pending and queue pools.

@Pana Pana requested a review from mattsse as a code owner March 27, 2025 01:45
@Pana Pana force-pushed the feat/txpool7702-v2 branch from 67e6040 to 70df632 Compare March 27, 2025 01:52
@Pana Pana requested review from Rjected and fgimenez as code owners March 27, 2025 01:52
@Pana Pana force-pushed the feat/txpool7702-v2 branch from 70df632 to b993970 Compare March 27, 2025 02:11
@Pana Pana requested a review from gakonst as a code owner March 27, 2025 02:11
@Pana Pana force-pushed the feat/txpool7702-v2 branch from b993970 to 64826fd Compare March 27, 2025 02:16
@Pana Pana closed this Mar 27, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Reth Tracker Mar 27, 2025
@Pana Pana reopened this Mar 27, 2025
@github-project-automation github-project-automation bot moved this from Done to In Progress in Reth Tracker Mar 27, 2025
@Pana Pana force-pushed the feat/txpool7702-v2 branch from 64826fd to 92ed0e5 Compare March 27, 2025 03:00
@Pana Pana closed this Mar 27, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant