HomePhabricator

[alias-server] [p16] Update database on block

Description

[alias-server] [p16] Update database on block

Summary:
T2922

Depends on D13152

Add new main() function that is the actual node app. The app will check for new aliases every time a block is found and add to the database.

MVP functionality less API endpoints.

Test Plan:
sudo systemctl mongod start
Run a Cashtab version capable of broadcasting alias txs
node index.js
Confirm alias functions and db write works correctly
Register some aliases at test address, confirm the app sees the txs
Wait for a block to be found
Confirm alias functions and db write works correctly

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Feb 23 2023, 00:59
bytesofmanPushed on Feb 28 2023, 22:45
Reviewer
Restricted Project
Differential Revision
D13162: [alias-server] [p16] Update database on block
Parents
rABC7e653cea3642: [alias-server] [p15] Only add alias records if alias is unique
Branches
Unknown
Tags
Unknown