ithacaxyz/odyssey

Use next free nonce in `wallet_sendTransaction`

Closed this issue · 3 comments

Currently we use the highest nonce in the pool or on disk, whichever is higher, in wallet_sendTransaction, but this can lead to nonce gaps, which ultimately leads the sequencer-sponsored txs to back up and get stuck. Instead we should use the next free nonce.

Depends on paradigmxyz/reth#11739

I'd love to take this

Thanks! I've assigned you to the issue. If you feel stuck, open up a draft PR with your questions and someone will help you. If you are prevented from solving the issue, let me know and I will unassign you 😄

We need to use the helpers introduced in paradigmxyz/reth#11739. There is a similar open PR in Reth for this feature: paradigmxyz/reth#11873

This would require a Reth bump on Odyssey.

Sorry @steph-rs, I'm going to have to take this over since it's P0 :( Hope you'll still consider contributing on another issue!