Page MenuHomePhabricator

[Cashtab] Add chaintip blockheight to wallet context
ClosedPublic

Authored by bytesofman on Jan 16 2024, 14:50.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCd343d61ef250: [Cashtab] Add chaintip blockheight to wallet context
Summary

We need the chaintip blockheight to determine which coinbase utxos are not yet mature.

Add this info to wallet context.

If the info is unavailable, Cashtab will ignore all coinbase utxos. So, if there is some error in fetching it, log it to the console but do not lock the UI.

Test Plan

Add console.log(tipHeight`, tipHeight) between lines 241 and 242 in useWallet.js`
npm start, check that tipHeight is printed to the console.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
add-chaintipheight-to-context
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26398
Build 52366: Build Diffcashtab-tests
Build 52365: arc lint + arc unit