Page MenuHomePhabricator

[alias-server] Cache confirmed tx history of registration address
ClosedPublic

Authored by bytesofman on Mar 13 2023, 22:43.

Details

Summary

T2966

Depends on D13314

Store all tx history of the alias registration address in the database. When a new block is found -- if there are new confirmed txs at the alias registration address that are not in the database, add them.

Test Plan

Review new mocks and tests
npm test
node index.js and all tx history should be added to db
Send some txs to the alias address
When they are confirmed, logs should confirm they are added to the db

Diff Detail

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

Event Timeline

bytesofman edited the summary of this revision. (Show Details)

Need to do some more optimization to help limit the size of the txHistoryMock file

Using array methods to compress size of txHistoryMocks.js

This revision is now accepted and ready to land.Mar 14 2023, 11:33