Skip to content

feat: Service Discovery - #1582

Draft
cnanakos wants to merge 5 commits into
masterfrom
feat/service-discovery
Draft

cnanakos wants to merge 5 commits into
masterfrom
feat/service-discovery

Conversation

@cnanakos

Copy link
Copy Markdown
Contributor

Nodes can now find AutoNAT servers, circuit relays, Mix relays and DHT mix proxies through service discovery. Static configuration remains for now as before.

Each server flag advertises one service: --autonat-server, --relay-server, --mix-enabled (with extip) and the new --dht-proxy-server.

Part of #1579

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
Part of #1579

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
Part of #1579

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
Part of #1579

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
A node registers one ad under /logos-storage/1.0.0 service ID. Its record lists
every service it provides, and lookups keep the nodes whose record lists the
requested service.

Discovery reuses its last lookup for natScheduleInterval time unless it has
no provider for the requested service.

Each list has a maximum and at the maximum a new provider replaces the
least recently seen one.

Part of #1579

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant