Page MenuHomePhabricator

[Cashtab] Switch backends if bch-api node is down
AbandonedPublic

Authored by bytesofman on Sep 15 2022, 13:17.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

When the node behind bch-api goes down, fulcrum and bch-api continue to function although they gradually get out of sync. This prevents the usual error throwing which causes the backends to switch.

This diff performs a node API check each update cycle. If the node is unavailable, the backend will switch.

Test Plan

Make sure kingbch.com node is down
npm start
Observe that the app immediately switches to the other backend
Start kingbch.com node
Observe that the app works okay

Diff Detail

Repository
rABC Bitcoin ABC
Branch
node-failure-insurance
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20045
Build 39778: Build Diffcashtab-tests
Build 39777: arc lint + arc unit