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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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