As per deprecation punchlist in T2730, swapping the node status checking call to use chronik in place of bch-js.
Details
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- deprecateGetBlockCountInUsewallet
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 20447 Build 40566: Build Diff cashtab-tests Build 40565: arc lint + arc unit
Event Timeline
On reflection, this diff needs to follow after the implementation of T2631.
Once T2631 is in, and there are no other bch-api calls in T2730, then tryNextAPI() can be removed altogether in this diff. The try/catch block can be amended to trigger user friendly notifs from T2631.
Need to get all of the transaction creation functions broadcasting with chronik instead of bch-api first. Then we can just completely remove this check, as if chronik is down then update will fail later on.
This check was needed to catch the edge case of the full node behind bch-api failing, but chronik not failing, back when bch-api still handled utxo and tx history. Now, there's no point in moving to a new bch-api server...except that it's still used to send some types of transactions, so we might as well.