celestiaorg / celestia-app

Celestia consensus node
https://celestiaorg.github.io/celestia-app/
Apache License 2.0
345 stars 292 forks source link

Index submitted transactions for nonce tracking in tx client #3899

Closed ninabarbakadze closed 1 month ago

ninabarbakadze commented 1 month ago

Description

Currently, if a transaction has a nonce mismatch, we query the transaction nonce and resubmit transactions with the updated nonce. We should stop resubmitting transactions on users' behalf and instead track all submitted transactions and their nonces locally. If a transaction gets evicted during ConfirmTx(), we can readjust the nonce to what it was before the transaction was submitted on-chain, allowing users to resubmit transactions if they choose to do so.