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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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