Page MenuHomePhabricator

[alias-server] Determine valid aliases from set of unprocessed txs and array of existing valid aliases
AbandonedPublic

Authored by bytesofman on Mar 16 2023, 13:44.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Summary

T2966

Depends on D13351

Introduce new function + unit tests, getAliasStringsFromValidAliases, which parses all valid alias tx objects stored in the database and returns an array containing only the valid aliases as strings
Introduce a new function + unit tests, getUnprocessedValidAliasRegistrations, which parses unprocessedTxs and and an array of already registerd aliases, and determines which aliases are valid

Test Plan

Review unit test changes and npm test
node index.js
Register some new aliases and send some non-alias txs to the node
When a block is found, confirm that newlyValidAliasTxs match validAliasTxsToBeAddedToDb

Diff Detail

Repository
rABC Bitcoin ABC
Branch
process-only-unprocessed-txs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22483
Build 44591: Build Diff
Build 44590: arc lint + arc unit