HomePhabricator

[Cashtab] [Chronik Websocket Notifications] [Part 4] Unsubscribe to Hash160s…

Description

[Cashtab] [Chronik Websocket Notifications] [Part 4] Unsubscribe to Hash160s when active wallet changes

Summary:
T2447

Depends on D11534

Part 4 of chronik websocket subscriptions for Cashtab

When the user switches active wallets, unsubscribe from previous addresses.

Test Plan:
npm start
Observe subscriptions to hash160s of active wallet
Navigate to settings and change the active wallet
Observe unsubscriptions in the dev console
Send a tx to the new active wallet. Observe a msg in the console.

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on May 30 2022, 17:33
bytesofmanPushed on Jun 7 2022, 21:06
Reviewer
Restricted Project
Differential Revision
D11535: [Cashtab] [Chronik Websocket Notifications] [Part 4] Unsubscribe to Hash160s when active wallet changes
Parents
rABCe6faab0c5eab: [Cashtab] [Chronik Websocket Notifications] [Part 3] Subscribe to Hash160s
Branches
Unknown
Tags
Unknown