Page MenuHomePhabricator

[Cashtab] Compare latest utxo set to stored wallet state
ClosedPublic

Authored by bytesofman on May 13 2021, 14:02.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCfc4b567b3537: [Cashtab] Compare latest utxo set to stored wallet state
Summary

If wallet has utxo set in state, then the utxosHaveChanged check should be performed against wallet.state and not previousUtxos

Issue: If user activates a new wallet from their saved wallets, utxosChanged will always be true if the app is checking previousUtxos instead of the previous utxo state of the loaded wallet.

After more local testing, turns out the issue described in D9516 was not happening in general, but only in a specific case being tested locally. So, this diff restores the original functionality, while keeping the cleaned up syntax of D9516.

Test Plan

npm test

Diff Detail

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