Page MenuHomePhabricator

[Cashtab] Only hydrate changed utxos
AbandonedPublic

Authored by bytesofman on May 23 2021, 20:05.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

A key bottleneck in Cashtab performance is the need to refresh the entire utxo set every 10s.

This diff isolates and refreshes only the changed utxos (and not if they have only changed by confirming)

Test Plan

npm test and confirm all unit tests pass
npm start

  1. Send and receive BCHA txs
  2. Change wallets
  3. Confirm balance and behavior is normal

Diff Detail

Repository
rABC Bitcoin ABC
Branch
only-hydrate-changed-utxos
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15786
Build 31472: Build Diffcashtab-tests
Build 31471: arc lint + arc unit

Event Timeline

CAUTION: Only run this diff with new wallets created for testing. Still issues in utxo matching. Running with an existing wallet may lead to balance errors and require re-importing the wallet.

This diff is unfinished. Debug logging still present, some bugs still need to be worked out.