Page MenuHomePhabricator

[alias-server] [p3] Support promise.all to fetch full tx history of address
ClosedPublic

Authored by bytesofman on Jan 19 2023, 15:46.

Details

Summary

T2922

Depends on D13008

Use chronik's pagination to iterate through and fetch the full tx history of an address

Test Plan

node index.js
Confirm number of txs matches what's printed at https://explorer.e.cash/address/ecash:qp3c268rd5946l2f5m5es4x25f7ewu4sjvpy52pqa8
Uncomment out lines 57 and 61
node index.js
Confirm the getAllTxHistory returns false if there is an error in one promise

Change aliasHash160 to the hash160 of a wallet with extensive tx history. Confirm function gets it all.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
alias-node-app
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21795
Build 43225: Build Diff
Build 43224: arc lint + arc unit

Event Timeline

Updating config.sample.js to add txHistoryPageSize field

This revision is now accepted and ready to land.Feb 1 2023, 06:51