Page MenuHomePhabricator

[Cashtab] More improvements to agora partial sale tx parsing
ClosedPublic

Authored by bytesofman on Wed, Nov 13, 05:08.

Details

Summary

Patch a bug in how agora txs are parsed so that (edge-case) wallets with multiple paths do not double or tripple-count agora amounts.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
another-agora-sale-tx-patch
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31122
Build 61745: Build Diffcashtab-tests
Build 61744: arc lint + arc unit

Event Timeline

do not count soldAmount more than once for different wallet paths

bytesofman added inline comments.
cashtab/src/components/Home/Tx/index.js
822

this is "the change" in this diff

for sold amount, we just want to count the qty that goes to the non-p2sh output

we do not want to count this quantity for every path the wallet might have.

all cashtab wallets are created with only one path now .... but legacy users like me will have path145, path245 -- causing sold qty to be double or tripple counted without this fix.

summary and test plan are still TBD?

bytesofman edited the test plan for this revision. (Show Details)

summary and test plan are still TBD?

oops, updated

This revision is now accepted and ready to land.Thu, Nov 14, 10:32