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.
Details
Details
- Reviewers
PiRK - Group Reviewers
Restricted Project - Commits
- rABC5d20dd587ea9: [chronik] Electrum: implement address.(un)subscribe endpoints
./test/functional/test_runner.py chronik_electrum_blockchain
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable