Page MenuHomePhabricator

[chronik] Electrum: implement peer discovery endpoints
ClosedPublic

Authored by Fabien on May 26 2025, 13:25.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC5796ee98b0b4: [chronik] Electrum: implement peer discovery endpoints
Summary

This adds the server.add_peer endpoint and use this data to return in peers.subscribe.

Peer validation is not implemented yet, which means that no added peers will end up in the subscribe returned list for now.

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

Event Timeline

Fabien requested review of this revision.May 26 2025, 13:25

Limit the peers list size, hardcoded to 10 for now. The peer validation will be responsible for clearing the list as well.

This revision is now accepted and ready to land.May 27 2025, 06:46