-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ckbtc): rotate KYT RPC providers in case of transient error (#1864)
XC-159: Support multiple RPC providers Support multiple bitcoin mainnet RPC providers in the KYT canister. Each RPC call will go to one provider, and the next call will go to the next provider and so on, in a round robin manner. When an RPC call returns http error code, it is treated as a transient error so that the same call can be tried again with the next provider. Because RPC errors can occur for all providers indefinitely, it is up to the caller to decide whether or not to call `check_transaction` again. --------- Co-authored-by: gregorydemay <[email protected]>
- Loading branch information
1 parent
7afabdc
commit 094f99d
Showing
7 changed files
with
294 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.