Skip to content

go/p2p/peermgmt: Make consensus peer registry optional #6202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 26, 2025

Conversation

peternose
Copy link
Contributor

These changes allow us to create the P2P service without relying on the consensus. The service can now be instantiated upfront and shared with other components immediately. Previously, the light client could only be initialized lazily, after the P2P service was registered, which was not suitable for a stateless light node.

Copy link

netlify bot commented May 26, 2025

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 052c7d0
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-core/deploys/68343b6f06c44a00087808a0

This change allows the P2P service to operate independently
of the consensus layer by discovering peers solely through
peer discovery mechanisms. Fetching peers from the consensus
registry is now optional and can be enabled if the consensus
service is available.
@peternose peternose force-pushed the peternose/trivial/decouple-p2p-consensus branch from f7c592b to 052c7d0 Compare May 26, 2025 09:59
@peternose peternose merged commit 0b008b7 into master May 26, 2025
5 checks passed
@peternose peternose deleted the peternose/trivial/decouple-p2p-consensus branch May 26, 2025 10:48
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