foundry
foundry copied to clipboard
feat(`anvil`): same behavior as major client's tx pool (e.g., geth, nethermind) for stricter tests
Component
Anvil
Describe the feature you would like
It's nice to have the same behavior (e.g., constraints when replacing a transaction) as major clients' tx pool (e.g., geth, nethermind) so that dev components that pass tests based on Anvil's can be smoothly deployed in production.
Additional context
some constraints like (at least 100% when replacing a blob transaction): geth: https://github.com/ethereum/go-ethereum/blob/93c541ad563124e81d125c7ebe78938175229b2e/core/txpool/blobpool/blobpool.go#L1145-L1150 nethermind: https://github.com/NethermindEth/nethermind/blob/bf658d8525d8b1b3007c49ddc38b12a061e033a2/src/Nethermind/Nethermind.TxPool/Comparison/CompareReplacedBlobTx.cs#L30-L32
This would be a design goal of a possible future Anvil built on Reth