HomePhabricator

[Cashtab] [Chronik Websocket Notifications] [Part 11] Ignore tx confirmed…

Description

[Cashtab] [Chronik Websocket Notifications] [Part 11] Ignore tx confirmed messages

Summary:
T2447

Depends on D11541

Ignore websocket messages that are not of type 'AddedToMempool'. Otherwise, notifications will also fire when transactions are confirmed.

These messages will be handled by different features in a later diff.

Test Plan:
npm start
Send yourself a tx and see notification
Wait for the tx to confirm (can monitor ecash.coin.dance or add a console.log(msg) statement to this diff ws config)
Note that you see no second notification

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Jun 1 2022, 23:03
bytesofmanPushed on Jun 7 2022, 21:06
Reviewer
Restricted Project
Differential Revision
D11554: [Cashtab] [Chronik Websocket Notifications] [Part 11] Ignore tx confirmed messages
Parents
rABC83f38d315f9d: [Cashtab] [Chronik Websocket Notifications] [Part 10] If ws connection active…
Branches
Unknown
Tags
Unknown