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

remove potential infinite loops #40

Open
alokmenghrajani opened this issue Oct 18, 2018 · 0 comments
Open

remove potential infinite loops #40

alokmenghrajani opened this issue Oct 18, 2018 · 0 comments

Comments

@alokmenghrajani
Copy link
Contributor

When the backend is processing data and something goes wrong, the request is re-queued (with the hope that another node will successfully handle the work). This creates a potential infinite loop. You can see this happen if you try to process an address with a huge number of transactions using the Electrum backend (e.g. 18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX has 12k transactions, too many for Electrum).

When we re-queue the work, we should track how many attempts we have done. If the number of attempts is too high, we should panic().

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