@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
11 lines • 419 B
TypeScript
import { PeerId } from "@libp2p/interface";
import { Libp2p } from "../../interface.js";
/**
* Return peers with at least one connection in status "open"
*/
export declare function getConnectedPeerIds(libp2p: Libp2p): PeerId[];
/**
* Efficiently check if there is at least one peer connected
*/
export declare function hasSomeConnectedPeer(libp2p: Libp2p): boolean;
//# sourceMappingURL=getConnectedPeerIds.d.ts.map