HomePhabricator

[Chronik] Send `TX_FINALIZED` msg for txs that are in a block that have been…

Description

[Chronik] Send TX_FINALIZED msg for txs that are in a block that have been finalized by Avalanche

Summary:
These are sent out for all txs in a block after Avalanche finalized a block.

Unlike handle_block_connected and handle_block_disconnected, we don't get the txs in handle_block_finalized, therefore we have to load them from disk.

Test Plan: ninja && ./test/functional/test_runner.py chronik_ws_script.py

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Apr 26 2023, 15:45
tobias_ruckPushed on Apr 27 2023, 23:40
Reviewer
Restricted Project
Differential Revision
D13793: [Chronik] Send `TX_FINALIZED` msg for txs that are in a block that have been finalized by Avalanche
Parents
rABCc65f97e360e3: [Chronik] Prefix WS protobuf enum entries with `BLK_` or `TX_`
Branches
Unknown
Tags
Unknown