-
Notifications
You must be signed in to change notification settings - Fork 206
Open
Labels
Description
Context
In PR #2121, we added hardfork gating for expiring nonce transactions in the transaction pool:
tt_2d_pool.rs:add_transaction()takes aTempoHardforkparameter to determine if expiring nonce transactions should be handled specially- This is necessary during the transition period to correctly handle
nonce_key == U256::MAXtransactions
Task
Once T1 is active on all networks (mainnet, testnet), we can simplify the code:
- Remove the
hardforkparameter fromAA2dPool::add_transaction() - Always treat
nonce_key == U256::MAXas expiring nonce transactions - Remove the hardfork lookup in
TempoTransactionPool::add_transaction()
Files to update
crates/transaction-pool/src/tt_2d_pool.rscrates/transaction-pool/src/tempo_pool.rs
Related
- PR feat: expiring nonces #2121 (temporary/expiring nonces implementation)