UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

35 lines 1.65 kB
export const defaultNetworkOptions = { maxPeers: 210, // Allow some room above targetPeers for new inbound peers targetPeers: 200, // In CLI usage this is typically overridden; when unset it serves as a fallback default (e.g. programmatic usage/tests) localMultiaddrs: [ "/ip4/0.0.0.0/udp/9001/quic-v1", "/ip6/::/udp/9001/quic-v1", "/ip4/0.0.0.0/tcp/9000", "/ip6/::/tcp/9000", ], bootMultiaddrs: [], /** disabled by default */ discv5: null, rateLimitMultiplier: 1, useWorker: true, // set after testing before 1.19.0, see https://github.com/ChainSafe/lodestar/issues/6596 disableFloodPublish: true, // default set via research in https://github.com/ChainSafe/lodestar/issues/2115 maxYoungGenerationSizeMb: 152, // subscribe 2 slots before aggregator dutied slot to get stable mesh peers as monitored on goerli slotsToSubscribeBeforeAggregatorDuty: 2, // This will enable the light client server by default disableLightClientServer: false, quic: true, tcp: true, // specific option for fulu // - this is the same to TARGET_SUBNET_PEERS // - for fusaka-devnets, we have 25-30 peers per subnet // - for public testnets or mainnet, average number of peers per group is SAMPLES_PER_SLOT * targetPeers / NUMBER_OF_CUSTODY_GROUPS = 6.25 so this should not be an issue targetGroupPeers: 6, // Keep this high enough for normal req/resp bursts on stable connections. // libp2p-mplex default (5) is too low and can cause frequent connection resets. disconnectThreshold: 50, }; //# sourceMappingURL=options.js.map