HomePhabricator

[token-server] Add database and initialize blacklist endpoints

Description

[token-server] Add database and initialize blacklist endpoints

Summary:
Add a database and initialize blacklist with usable API endpoints.

Going forward, will add a way to update the blacklist without updating the repo.

Test Plan:
npm test

ts-node index.ts and db is created and populated with blacklist
ctrl+c and shuts down gracefully
ts-node index.ts and db is connected, blacklist collection is not overwritten, we see console.log that it has 12 elements

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Sun, Oct 27, 23:34
bytesofmanPushed on Tue, Oct 29, 13:37
Reviewer
Restricted Project
Differential Revision
D17020: [token-server] Add database and initialize blacklist endpoints
Parents
rABCc029196d5004: [ecash-herald] Parse agora actions
Branches
Unknown
Tags
Unknown