Page MenuHomePhabricator

Support backup API URLs
ClosedPublic

Authored by bytesofman on Dec 1 2020, 22:09.

Details

Reviewers
alcipir
deadalnix
Group Reviewers
Restricted Project
Commits
rABC35eb3f2e2774: Support backup API URLs
Summary

Support backup API URLs

Test Plan

Edit the REACT_APP_BCHA_APIS variable in .env to purposefully include error-generating APIs:

REACT_APP_BCHA_APIS=fakenews,stillnotreal,https://free-test.fullstack.cash/v3/,https://rest.kingbch.com/v3/,https://wallet-service-prod.bitframe.org/v3/,notevenaurl

Install dependencies and run the app locally in your browser:

npm install --legacy-peer-deps
npm start

Observe that the app loads in an error state. It then proceeds to cycle through the API URLs in REACT_APP_BCHA_APIS until the wallet is loaded successfully.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable