-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
error updating wallet caused by esplora rate limit #70
Comments
Hm, I am not sure how we can fix them. What specific fix you have in mind? |
IMO the best fix would be to handle this on bp-esplora-client, where every API call (blocking and async) should handle the 429 error by waiting some milliseconds and then retrying to do the call, something similar to what it has been done here https://github.com/Blockstream/lwk/blob/0533774f8d9b3fef2d579ad5b9bdd497ffa74165/lwk_wollet/src/clients/esplora_wasm_client.rs#L511. An alternative and much faster fix would be to handle the error on bp-wallet during the |
Refactoring of So I propose to use fastest route - and when we will be refactoring (rewriting) the whole code later we will address the issue at its root. |
I am also opened to the idea of re-basing on top of the updated BDK esplora client code - I can work on that if you'd like |
I agree refactoring is not a priority, but having RGB working on mainnet will soon be and this 429 error is preventing it. We can try the fastest route but I'm not sure that we'll not encounter other issues later on.
I'm not sure this would help, they are not handling the 429 error and the main changes between the upstream repo and this one are contained in the commit I've cherry-picked. |
As shown in RGB-WG/rgb-tests#7 there's an issue when using the official mainnet esplora URL (https://blockstream.info/api) when calling
Wallet::update
.This Blockstream/esplora#449 is a related issue, where it's explained that to dodge the 429 error we shoule leave a gap of around 250ms between each API call. Please also check bitcoindevkit/bdk#1120 (comment)
Not sure we want to fix this here or in https://github.com/BP-WG/bp-esplora-client
The text was updated successfully, but these errors were encountered: