Page MenuHomePhabricator

[Cashtab] Force API switch if full node is offline
ClosedPublic

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

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABCa2434cb468cb: [Cashtab] Force API switch if full node is offline
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-redundancy-fix
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20046
Build 39780: Build Diffcashtab-tests
Build 39779: arc lint + arc unit

Event Timeline

Get BCH from wallet, where it will reflect the latest API

This revision is now accepted and ready to land.Sep 22 2022, 13:10