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

common: implementing the timeout recovery stratefy #44

Merged
merged 2 commits into from
Sep 2, 2023

Conversation

vincenzopalazzo
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo commented Sep 2, 2023

Fixes #41
Fixes #34

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This command is implementing an idea that it is well tested
in plugin like [1] and running in production for years now.

In the years no better solution are been found, so we keep
our incremental timeout for explora in case of failure.

Only explora can change the answer after a while
and the others from our tests are pretty stable (except nakamoto).

In summary if an request fails the retry stratefy try 4 time with an
incremental time, in this way also if the explora will ban us
there is no problem because we have time to recover from the ban.

[1] https://github.com/clightning4j/btcli4j

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@vincenzopalazzo vincenzopalazzo merged commit 184122a into main Sep 2, 2023
4 checks passed
@vincenzopalazzo vincenzopalazzo deleted the macros/implement-streategy branch September 2, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant