pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
63 stars 33 forks source link

[P2P] Implement KISS peer discovery for LocalNet #416

Closed deblasis closed 1 year ago

deblasis commented 1 year ago

Objective

Ensure that the debug client is capable of broadcasting / sending messages to the LocalNet nodes even after the ValidatorMap (which contained the addresses of the nodes, sourced from the genesis) has been sunset.

Origin Document

Since #203 and #331 replace ValidatorMap with dynamic actor fetching from the persistence layer based on the Node's current height, the debug client needs a mechanism to discover the entire local set of peers regardless of the address book each individual node has.

This leads us to the first real use-case for peer-discovery.

Goals

Deliverable

Non-goals / Non-deliverables

General issue deliverables

Testing Methodology


Creator: [@deblasis] Co-Owners: [@Olshansk]

jessicadaugherty commented 1 year ago

@deblasis Create draft PR with endpoints and tooling for review (potentially merge as is)