Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

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

Open
WayneWayner opened this issue Dec 21, 2020 · 1 comment
Open

Comments

@WayneWayner
Copy link

WayneWayner commented Dec 21, 2020

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
Copy link
Author

WayneWayner commented Dec 21, 2020

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 WayneWayner changed the title Indexer agent: Sending tx after restart with higher nonce Indexer agent: Deadlock | Sending tx after restart with higher nonce Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant