UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

14 lines 625 B
import { Connection } from "@libp2p/interface"; import { routes } from "@lodestar/api"; /** * Format a list of connections from libp2p connections manager into the API's format NodePeer */ export declare function formatNodePeer(peerIdStr: string, connections: Connection[]): routes.node.NodePeer; /** * From a list of connections, get the most relevant of a peer * - The first open connection if any * - Otherwise, the first closing connection * - Otherwise, the first closed connection */ export declare function getRelevantConnection(connections: Connection[]): Connection | null; //# sourceMappingURL=utils.d.ts.map