Skip to content

0xsiddharthks/siddharth/feat/whitelist only#567

Merged
rustaceanrob merged 2 commits into2140-dev:masterfrom
rustaceanrob:0xsiddharthks/siddharth/feat/whitelist-only
Apr 11, 2026
Merged

0xsiddharthks/siddharth/feat/whitelist only#567
rustaceanrob merged 2 commits into2140-dev:masterfrom
rustaceanrob:0xsiddharthks/siddharth/feat/whitelist-only

Conversation

@rustaceanrob
Copy link
Copy Markdown
Collaborator

@rustaceanrob rustaceanrob commented Apr 11, 2026

Replaces #565

When enabled via Builder::whitelist_only(), the node will only connect
to peers explicitly added via add_peer/add_peers. DNS seeding and addr
gossip fallback are skipped. If all whitelist peers disconnect, the node
exits with NoReachablePeers, allowing the caller to restart with a
fresh whitelist.
Add whitelist_only_sync: builds a node with whitelist_only enabled
and a single whitelisted bitcoind peer, verifies sync completes.
Verifies the node exits with an error instead of falling back to DNS seeding.
@rustaceanrob rustaceanrob merged commit 4acdb09 into 2140-dev:master Apr 11, 2026
10 checks passed
@rustaceanrob rustaceanrob deleted the 0xsiddharthks/siddharth/feat/whitelist-only branch April 11, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants