HomePhabricator

[alias-server] Use address as parameter instead of hardcoded p2pkh and hash…

Description

[alias-server] Use address as parameter instead of hardcoded p2pkh and hash parameter

Summary:
T3060

We want the server to work with any arbitrary registration address, be it p2pkh or p2sh. Refactor to remove hardcoded instances of p2pkh.

Add unit test for this change in initializeWebsocket function.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
bytesofmanAuthored on Apr 6 2023, 17:20
bytesofmanPushed on Apr 7 2023, 15:06
Reviewer
Restricted Project
Differential Revision
D13604: [alias-server] Use address as parameter instead of hardcoded p2pkh and hash parameter
Parents
rABC62bf7094dba2: contrib: Add tests for symbol-check
Branches
Unknown
Tags
Unknown