@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
30 lines • 1.13 kB
TypeScript
/**
* For more info on some of these constants:
* https://github.com/ethereum/consensus-specs/blob/v1.1.10/specs/phase0/p2p-interface.md#configuration
*/
/**
* The maximum number of slots during which an attestation can be propagated.
*/
export declare const ATTESTATION_PROPAGATION_SLOT_RANGE = 32;
/** The maximum allowed size of uncompressed gossip messages. */
export declare const GOSSIP_MAX_SIZE: number;
export declare const GOSSIP_MAX_SIZE_BELLATRIX: number;
/** The maximum allowed size of uncompressed req/resp chunked responses. */
export declare const MAX_CHUNK_SIZE: number;
export declare const MAX_CHUNK_SIZE_BELLATRIX: number;
export declare enum GoodByeReasonCode {
INBOUND_DISCONNECT = -1,
CLIENT_SHUTDOWN = 1,
IRRELEVANT_NETWORK = 2,
ERROR = 3,
TOO_MANY_PEERS = 129,
SCORE_TOO_LOW = 250,
BANNED = 251
}
export declare const GOODBYE_KNOWN_CODES: Record<string, string>;
/** Until js-libp2p exports an enum for its events */
export declare enum Libp2pEvent {
connectionOpen = "connection:open",
connectionClose = "connection:close"
}
//# sourceMappingURL=network.d.ts.map