HomePhabricator

[alias-server] remove redundant address validation from db function

Description

[alias-server] remove redundant address validation from db function

Summary:
When getAliasInfoFromAddress was written, it was the only function used to query at the /address/ endpoint. So, it made sense to handle the address validation there. Now that this endpoint makes two separate database queries, the address validation should be handled before each query -- and it is, in the endpoint handling function defined in app.js

Remove address validation from getAliasInfoFromAddress as this function is only used by the /address/ endpoint handler defined in app.js and this handler already performs address validation.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Sep 19 2023, 19:18
bytesofmanPushed on Sep 20 2023, 18:16
Reviewer
Restricted Project
Differential Revision
D14506: [alias-server] remove redundant address validation from db function
Parents
rABCd51fd7394adc: [electrum] check output type in Transaction and fix a callsites that still…
Branches
Unknown
Tags
Unknown