Page MenuHomePhabricator

[chronik] Electrum: implement address.(un)subscribe endpoints
ClosedPublic

Authored by Fabien on May 28 2025, 08:48.

Details

Summary

This diff extracts the subscription method to work with both scripthash and address. The subscription is kept unique between the 2, so we don't get duplicated notifications and any method can be used for unsusbcribing.
However we don't allow overriding the format, i.e. if first subscribed to scripthash then to address, the notification will keep the scripthash format and not be updated (as opposed to fulcrum). This is still compliant with the specification and shouldn't matter in practice.

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

Diff Detail

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