mission-control-indexer
mission-control-indexer copied to clipboard
Indexer agent: Deadlock | Sending tx after restart with higher nonce
Problem:
-
Agent sent an allocation tx with too low gas price.
-
Indexer restarts agent.
-
Agent sends another tx with a good gas price value but with a higher nonce.
-
=>Both are pending.
Would be better if the agent uses the same nonce to replace the low gas price transaction. This results in a deadlock for the agent to start an allocation.
Imagine we have a gas price drop to 1gwei for a short moment and the agent wants to send with 1 gwei gas price. We could wait weeks for this to go through.
Can be fixed by manual tx with the same nonce of the low gas price tx But would be better if this is never needed.