Page MenuHomePhabricator

[chronik] Electrum: Implement peer validation
ClosedPublic

Authored by Fabien on Jun 27 2025, 08:17.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC7408f945bf9a: [chronik] Electrum: Implement peer validation
Summary

Check the peers periodically in a background task before returning them in peers.subscribe.
Note that we need to use the tokio Mutex here so the peers can be mutated in the various tokio tasks.
A new option is added so we can use a sane default value for the validation interval but speed it up in the tests (this time is not mockable).

Depends on D18298.

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

Event Timeline

Fabien published this revision for review.Jun 27 2025, 10:04
Fabien edited the summary of this revision. (Show Details)
Fabien planned changes to this revision.Jun 27 2025, 12:57

Properly implement explicitly disabling validation, and add more test cases for config errors

This revision is now accepted and ready to land.Jun 27 2025, 13:55