Skip to content

feat: moving protocol peer management's source of truth into libp2p's metadata #2167

Closed
@danisharora099

Description

@danisharora099

This is an improvement request

Problem

We currently rely on PeerManager that maintains a copy of peers being used for the protocol, and maintain the copy in-memory in an array.

We might be able to improve this maintenance of the copy of peer list in an array, to the usage of metadata in Libp2p's PeerStore for the same.

Proposed Solution

Experiment with moving the source of truth for which peers to use for protocols as part of the peer's metadata instead of an in-memory variable

Notes

Metadata

Metadata

Labels

enhancementNew feature or request

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions