HomePhabricator

[alias-server] [p15] Only add alias records if alias is unique

Description

[alias-server] [p15] Only add alias records if alias is unique

Summary:
T2922

Depends on D13151

Only add alias records that are not already in the database

Test Plan:
sudo systemctl start mongod
In mongod, delete the ecashAliases database:

use ecashAliases
db.dropDatabase()

Run node index.js in web/alias-server
Note aliases are added to database
Run node index.js again
Note no aliases are added but all are processed

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Feb 21 2023, 23:47
bytesofmanPushed on Feb 28 2023, 22:45
Reviewer
Restricted Project
Differential Revision
D13152: [alias-server] [p15] Only add alias records if alias is unique
Parents
rABC5a2ecb5343ba: [alias-server] [p14] Write alias data to database
Branches
Unknown
Tags
Unknown