edr
edr copied to clipboard
Optimise `MemPool::insert_pending_transaction` logic to avoid O(nˆ2) loop
For context, see https://github.com/NomicFoundation/hardhat/pull/4369/files/9a93b5aa5eefdfe81b1a09969cec83995ded73ab#r1321470566
Definition of Done
- Replace the O(nˆ2) iteration of
future_transactions
to avoid slowdown for large mempools