Weave documentation
Weave Dht

Discovery

Build a DhtNode with explicit bootstrap peers and a listen port, then retain the node and its handle while networking runs.

Workflow and current contract

Build a DhtNode with explicit bootstrap peers and a listen port, then retain the node and its handle while networking runs. handle().list_listeners().await returns listener strings; list_peers().await reports known peers. Bootstrap convergence is asynchronous: an immediate empty peer list is not proof of failure or success.

Use a reachable address containing the actual peer identity when constructing a remote bootstrap configuration. A wildcard bind address returned locally may not be dialable from another host. Discovery publishes routing information; it does not by itself replicate every Strand or file.

Source reference

On this page