HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D13316

Details

Provenance
bytesofmanAuthored on Mar 13 2023, 22:20
bytesofmanPushed on Mar 14 2023, 11:58
Reviewer
Restricted Project
Differential Revision
D13316: [alias-server] Cache confirmed tx history of registration address
Parents
rABCff81ae895773: [alias-server] Add new function to remove unconfirmed txs from a set of chronik…
Branches
Unknown
Tags
Unknown