Page MenuHomePhabricator

[Chronik] Add `WsSubTxs` subscription
ClosedPublic

Authored by tobias_ruck on Sun, Nov 23, 00:01.

Details

Reviewers
Fabien
alitayin
Group Reviewers
Restricted Project
Commits
rABC8aafa64105bd: [Chronik] Add `WsSubTxs` subscription
Summary

WebSocket subscriptions to simply receive all transactions. This is useful for a block explorer.

Test Plan

./test/functional/test_runner.py chronik_ws

Event Timeline

rename "AllTxs" to just "Txs", add assert_recv_all_any_order, and finish chronik_ws test

@bot guix-linux

tobias_ruck retitled this revision from [Chronik] Add `WsAllTxs` subscription to [Chronik] Add `WsSublTxs` subscription.Mon, Nov 24, 18:58
alitayin added a subscriber: alitayin.

perfect. gogo

This revision is now accepted and ready to land.Mon, Nov 24, 19:06
Fabien added inline comments.
chronik/chronik-indexer/src/subs.rs
56

At some point we should make this configurable, but out of scope for this diff

test/functional/chronik_ws.py
644

please lower to 2s, not need to spend 10s proving nothing happens

tobias_ruck retitled this revision from [Chronik] Add `WsSublTxs` subscription to [Chronik] Add `WsSubTxs` subscription.Mon, Nov 24, 23:18
This revision was automatically updated to reflect the committed changes.