Skip to content

net: forget a peer that runs another network - #144

Open
octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:2026-09-01-forget-foreign-peer
Open

net: forget a peer that runs another network#144
octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:2026-09-01-forget-foreign-peer

Conversation

@octobocto

@octobocto octobocto commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

A peer that answers with another network's magic never becomes useful, but the node keeps it in known_peers and dials it again on every start. A datadir made before the default moved to alphanet still holds the two signet seeds.

The node now calls the existing forget_peer when the magic is wrong, and only then. A timeout still keeps the peer.

@octobocto
octobocto force-pushed the 2026-09-01-forget-foreign-peer branch from 26f011b to 8e9fee2 Compare September 5, 2026 06:14
@octobocto
octobocto force-pushed the 2026-09-01-forget-foreign-peer branch from 8e9fee2 to 71a089c Compare September 5, 2026 06:22
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.

1 participant