Page MenuHomePhabricator

[Cashtab] [chronik tx history p2] Add a function to combine chronik tx history for all addresses into a single array
ClosedPublic

Authored by bytesofman on Sep 23 2022, 18:18.

Details

Summary

T2447

Depends on D12048

Add a function to combine the API output of chronik.script.history called on all addresses into a single array

Test Plan

Review the unit test, mocks
npm test

npm start
Observe in dev console that chronikTxHistory as flattened array includes all the tx entries from txHistoryOfAllAddresses

Diff Detail

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

Event Timeline

Removed now obsolete fields from mocks

flattened array length should match that set in parameters

Actually, you can't trim it here. Need to sort it first.

This revision is now accepted and ready to land.Sep 24 2022, 15:11