Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown while pending transactions might cause the service to get stuck #17

Open
jusasiiv opened this issue Mar 19, 2024 · 0 comments
Open

Comments

@jusasiiv
Copy link
Collaborator

After these steps, service was not handling transactions:

  1. Service had 3 pending transactions
  2. Service was halted
  3. On restart the three pending transactions failed due to error: bad-txns-inputs-missingorspent You might have a local transaction in your wallet that this transaction builds on top. You need to either broadcast or remove the local tx.
  4. After clearing the local transactions from the wallet the API failed on queue and would not process tx giving Insufficient funds error
  5. Issue was cleared after pending transactions were removed from db and added back in

Possible fix:

  • Make sure that on shutdown all local transactions get cleared from the wallet OR on startup make sure not to initiate new transaction for pending transactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant