HomePhabricator

[Cashtab] [Chronik Websocket Notifications] [Part 2] Get Hash160s from wallet

Description

[Cashtab] [Chronik Websocket Notifications] [Part 2] Get Hash160s from wallet

Summary:
T2447

Depends on D11530

Helper function getHashArrayFromWallet(wallet) and unit tests. Gets hash160s from active wallet. These are required for chronik websocket, which subscribes to hash160 and not addresses.

If wallet does not have hash160s (unmigrated), function returns false. In this edge case (as with websocket failures), the app will use alternate notifications.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on May 27 2022, 23:41
bytesofmanPushed on Jun 7 2022, 21:06
Reviewer
Restricted Project
Differential Revision
D11531: [Cashtab] [Chronik Websocket Notifications] [Part 2] Get Hash160s from wallet
Parents
rABCb7f775e991d4: [Cashtab] [Chronik Websocket Notifications] [Part 1] Connect to websocket
Branches
Unknown
Tags
Unknown