Page MenuHomePhabricator

[chronik] Add the blockchain.headers.unsubscribe endpoint
ClosedPublic

Authored by Fabien on Thu, May 15, 07:21.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCb439dfc45f3f: [chronik] Add the blockchain.headers.unsubscribe endpoint
Summary

Implements https://electrum-cash-protocol.readthedocs.io/en/latest/protocol-methods.html#blockchain-headers-unsubscribe.

Since there is a single possible subscription for now, it is hardcoded as zero. This might change (or not) when the address/scripthash subscription is implemented.

This requires a new version of the karyon library to support arbitraty subscription ID, so the code also adapts to this new version.
In particular it handles duplicated subscription as no-op, but will not send the same notification several times (as opposed to Fulcrum).

Test Plan
./test/functional/test_runner.py chronik_electrum_blockchain