mission-control-indexer icon indicating copy to clipboard operation
mission-control-indexer copied to clipboard

Indexer agent: Deadlock | Sending tx after restart with higher nonce

Open WayneWayner opened this issue 4 years ago • 1 comments

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.

WayneWayner avatar Dec 21 '20 00:12 WayneWayner

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.

WayneWayner avatar Dec 21 '20 00:12 WayneWayner