Page MenuHomePhabricator

[Cashtab] [chronik utxo handling p2] Add a function to split utxos by slp, nonSlp to match current storage model
ClosedPublic

Authored by bytesofman on Sep 7 2022, 16:48.

Details

Summary

T2447

Depends on D11928

Add a function to split slp and nonSlp utxos.

With chronik, any token that has an slpToken key is an slp utxo. Function with unit test added.

Test Plan

npm start
Confirm slpUtxos.length + nonSlpUtxos.length in chronikSlpBalancesAndUtxos === chronikUtxos.length
Review new unit test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-utxo-handling-take2
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19952
Build 39609: Build Diffcashtab-tests
Build 39608: arc lint + arc unit

Event Timeline

bytesofman updated this revision to Diff 34851.

Adding length check to unit test

Need to use typeof !== 'undefined' instead of is in, since chronik returns undefined keys

This revision is now accepted and ready to land.Sep 8 2022, 01:03