Use next free nonce in `wallet_sendTransaction`
Closed this issue · 3 comments
onbjerg commented
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
steph-rs commented
I'd love to take this
onbjerg commented
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.