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

Detect if a transaction from the mempool is missing dependencies and skip it #59

Open
andreabadesso opened this issue Jul 13, 2022 · 0 comments

Comments

@andreabadesso
Copy link
Collaborator

After https://github.com/HathorNetwork/hathor-wallet-service/issues/242 is done, we will receive a specific error message if a transaction is missing dependencies

If this transaction was sent during the mempool sync, we are safe to ignore the error, as the transaction will be sent again during the block sync (after it is confirmed by a block) or during the next mempool sync (if it is still on the mempool)

If this transaction was sent during the block sync, we should alert and stop the sync as it indicates that something is wrong and the wallet-service database is corrupted somehow.

This should avoid false positives alerts for our on-call

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