HomePhabricator

[Chronik] Add `PluginContext::run_on_tx`

Description

[Chronik] Add PluginContext::run_on_tx

Summary:
This is the "core" of the plugin system; it takes a tx (plus some extra data from the indexer), runs the plugins and returns their outputs as PluginTxOutputs.

This can later then be used by PluginsWriter and the mempool to store the output data generated by the plugins.

Depends on D16525.

Test Plan: cargo -p chronik-plugin-impl test_run_on_tx

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Jul 23 2024, 23:33
tobias_ruckPushed on Jul 29 2024, 08:15
Reviewer
Restricted Project
Differential Revision
D16527: [Chronik] Add `PluginContext::run_on_tx`
Parents
rABC748343d6c5ef: Improve the ZMQ functional test
Branches
Unknown
Tags
Unknown