Page MenuHomePhabricator

[chronik] Bind the transaction invalidated callback to the ws messages
ClosedPublic

Authored by Fabien on Jul 31 2025, 20:29.

Details

Summary

Similar to D18432 but for the invalidation event.

Depends on D18438.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jul 31 2025, 20:29
tobias_ruck added a subscriber: tobias_ruck.
tobias_ruck added inline comments.
chronik/chronik-indexer/src/indexer.rs
1028 ↗(On Diff #55073)

seems a bit hacky, but I get the idea—I suggest we add a "probe_tx" function or so to the Mempool struct (which for now simply calls insert and remove like here), and in the future we can refactor it and fill it with logic that does it without the hack.

also makes the code here more readable (we can move a part of the comment out too)

chronik/chronik-lib/src/bridge.rs
301–302 ↗(On Diff #55073)
This revision now requires changes to proceed.Jul 31 2025, 20:49

Use a proxy probe_tx in the mempool and explain why

Undo unecessary explicit typing

chronik/chronik-lib/src/bridge.rs
301–302 ↗(On Diff #55073)

I blame the autocompletion feature of the IDE on that one

tobias_ruck added inline comments.
chronik/chronik-lib/src/bridge.rs
496–499 ↗(On Diff #55078)

this should work

This revision is now accepted and ready to land.Aug 1 2025, 08:59