UNPKG

@waku/discovery

Version:

Contains various discovery mechanisms: DNS Discovery (EIP-1459, Peer Exchange, Local Peer Cache Discovery.

8 lines (7 loc) 352 B
import type { IEnr } from "@waku/interfaces"; /** * Fetch nodes using passed [[getNode]] until it has been called [[maxGet]] * times, or it has returned empty or duplicate results more than [[maxErrors]] * times. */ export declare function fetchNodes(getNode: () => Promise<IEnr | null>, maxGet?: number, maxErrors?: number): AsyncGenerator<IEnr>;