HomePhabricator

[chronik] Electrum: add the server.features endpoint

Description

[chronik] Electrum: add the server.features endpoint

Summary:
According to the protocol, this should return the public URLs and a list of the available protocols/ports in order to remain connected from other peers.
For now a single URL is supported, via a command line option as the node has no way to determine this value on its own.
In order to avoid querying the genesis hash for every call, the value is cached and a bridge function is added to get the hash from the node where it is hardcoded.

Test Plan:

./test/functional/test_runner.py chronik_electrum_basic

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D18123

Details

Provenance
FabienAuthored on May 22 2025, 08:15
FabienPushed on May 22 2025, 12:14
Reviewer
Restricted Project
Differential Revision
D18123: [chronik] Electrum: add the server.features endpoint
Parents
rABCb034601c2e67: [chronik] Electrum: support prefixless addresses
Branches
Unknown
Tags
Unknown