diff --git a/lerna.json b/lerna.json index 32066428e053..72851c4f3189 100644 --- a/lerna.json +++ b/lerna.json @@ -4,7 +4,7 @@ ], "npmClient": "yarn", "useNx": true, - "version": "1.18.0", + "version": "1.18.1", "stream": true, "command": { "version": { diff --git a/packages/api/package.json b/packages/api/package.json index c9bf498dc416..4046e432a22f 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -69,10 +69,10 @@ "dependencies": { "@chainsafe/persistent-merkle-tree": "^0.7.1", "@chainsafe/ssz": "^0.15.1", - "@lodestar/config": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/config": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", "eventsource": "^2.0.2", "qs": "^6.11.1" }, diff --git a/packages/beacon-node/package.json b/packages/beacon-node/package.json index 308873ccdee8..f1a447285154 100644 --- a/packages/beacon-node/package.json +++ b/packages/beacon-node/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -120,18 +120,18 @@ "@libp2p/peer-id-factory": "^4.0.3", "@libp2p/prometheus-metrics": "^3.0.10", "@libp2p/tcp": "9.0.10", - "@lodestar/api": "^1.18.0", - "@lodestar/config": "^1.18.0", - "@lodestar/db": "^1.18.0", - "@lodestar/fork-choice": "^1.18.0", - "@lodestar/light-client": "^1.18.0", - "@lodestar/logger": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/reqresp": "^1.18.0", - "@lodestar/state-transition": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", - "@lodestar/validator": "^1.18.0", + "@lodestar/api": "^1.18.1", + "@lodestar/config": "^1.18.1", + "@lodestar/db": "^1.18.1", + "@lodestar/fork-choice": "^1.18.1", + "@lodestar/light-client": "^1.18.1", + "@lodestar/logger": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/reqresp": "^1.18.1", + "@lodestar/state-transition": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", + "@lodestar/validator": "^1.18.1", "@multiformats/multiaddr": "^12.1.3", "c-kzg": "^2.1.2", "datastore-core": "^9.1.1", diff --git a/packages/beacon-node/src/network/gossip/gossipsub.ts b/packages/beacon-node/src/network/gossip/gossipsub.ts index c9d839292242..81e3b1b67c48 100644 --- a/packages/beacon-node/src/network/gossip/gossipsub.ts +++ b/packages/beacon-node/src/network/gossip/gossipsub.ts @@ -53,6 +53,7 @@ export type Eth2GossipsubOpts = { gossipsubDLow?: number; gossipsubDHigh?: number; gossipsubAwaitHandler?: boolean; + disableFloodPublish?: boolean; skipParamsLog?: boolean; }; @@ -128,6 +129,9 @@ export class Eth2Gossipsub extends GossipSub { maxOutboundBufferSize: MAX_OUTBOUND_BUFFER_SIZE, // serialize message once and send to all peers when publishing batchPublish: true, + // if this is false, only publish to mesh peers. If there is not enough GOSSIP_D mesh peers, + // publish to some more topic peers to make sure we always publish to at least GOSSIP_D peers + floodPublish: !opts?.disableFloodPublish, }); this.scoreParams = scoreParams; this.config = config; diff --git a/packages/cli/package.json b/packages/cli/package.json index 3faeb6b9443e..cac1b27ee469 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@chainsafe/lodestar", - "version": "1.18.0", + "version": "1.18.1", "description": "Command line interface for lodestar", "author": "ChainSafe Systems", "license": "LGPL-3.0", @@ -63,17 +63,17 @@ "@libp2p/crypto": "^3.0.4", "@libp2p/peer-id": "^4.0.4", "@libp2p/peer-id-factory": "^4.0.3", - "@lodestar/api": "^1.18.0", - "@lodestar/beacon-node": "^1.18.0", - "@lodestar/config": "^1.18.0", - "@lodestar/db": "^1.18.0", - "@lodestar/light-client": "^1.18.0", - "@lodestar/logger": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/state-transition": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", - "@lodestar/validator": "^1.18.0", + "@lodestar/api": "^1.18.1", + "@lodestar/beacon-node": "^1.18.1", + "@lodestar/config": "^1.18.1", + "@lodestar/db": "^1.18.1", + "@lodestar/light-client": "^1.18.1", + "@lodestar/logger": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/state-transition": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", + "@lodestar/validator": "^1.18.1", "@multiformats/multiaddr": "^12.1.3", "deepmerge": "^4.3.1", "ethers": "^6.7.0", @@ -89,7 +89,7 @@ "yargs": "^17.7.1" }, "devDependencies": { - "@lodestar/test-utils": "^1.18.0", + "@lodestar/test-utils": "^1.18.1", "@types/debug": "^4.1.7", "@types/got": "^9.6.12", "@types/inquirer": "^9.0.3", diff --git a/packages/cli/src/options/beaconNodeOptions/network.ts b/packages/cli/src/options/beaconNodeOptions/network.ts index 74463f9aa1ce..25ba036a5dbf 100644 --- a/packages/cli/src/options/beaconNodeOptions/network.ts +++ b/packages/cli/src/options/beaconNodeOptions/network.ts @@ -32,6 +32,7 @@ export type NetworkArgs = { "network.gossipsubDLow"?: number; "network.gossipsubDHigh"?: number; "network.gossipsubAwaitHandler"?: boolean; + "network.disableFloodPublish"?: boolean; "network.rateLimitMultiplier"?: number; "network.maxGossipTopicConcurrency"?: number; "network.useWorker"?: boolean; @@ -149,6 +150,7 @@ export function parseArgs(args: NetworkArgs): IBeaconNodeOptions["network"] { gossipsubDLow: args["network.gossipsubDLow"], gossipsubDHigh: args["network.gossipsubDHigh"], gossipsubAwaitHandler: args["network.gossipsubAwaitHandler"], + disableFloodPublish: args["network.disableFloodPublish"], mdns: args["mdns"], rateLimitMultiplier: args["network.rateLimitMultiplier"], maxGossipTopicConcurrency: args["network.maxGossipTopicConcurrency"], @@ -360,6 +362,13 @@ export const options: CliCommandOptions = { group: "network", }, + "network.disableFloodPublish": { + hidden: true, + description: "Disable gossipsub flood publish", + type: "boolean", + group: "network", + }, + "network.rateLimitMultiplier": { type: "number", description: "The multiplier to increase the rate limits. Set to zero to disable rate limiting.", diff --git a/packages/config/package.json b/packages/config/package.json index 84705be379ac..71463b6b5caf 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@lodestar/config", - "version": "1.18.0", + "version": "1.18.1", "description": "Chain configuration required for lodestar", "author": "ChainSafe Systems", "license": "Apache-2.0", @@ -65,7 +65,7 @@ ], "dependencies": { "@chainsafe/ssz": "^0.15.1", - "@lodestar/params": "^1.18.0", - "@lodestar/types": "^1.18.0" + "@lodestar/params": "^1.18.1", + "@lodestar/types": "^1.18.1" } } diff --git a/packages/db/package.json b/packages/db/package.json index bffc7d8f2d64..3ca73d26f280 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@lodestar/db", - "version": "1.18.0", + "version": "1.18.1", "description": "DB modules of Lodestar", "author": "ChainSafe Systems", "homepage": "https://github.com/ChainSafe/lodestar#readme", @@ -36,12 +36,12 @@ }, "dependencies": { "@chainsafe/ssz": "^0.15.1", - "@lodestar/config": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/config": "^1.18.1", + "@lodestar/utils": "^1.18.1", "it-all": "^3.0.4", "level": "^8.0.0" }, "devDependencies": { - "@lodestar/logger": "^1.18.0" + "@lodestar/logger": "^1.18.1" } } diff --git a/packages/flare/package.json b/packages/flare/package.json index 78a512f6a00c..8d20b6d4d4e1 100644 --- a/packages/flare/package.json +++ b/packages/flare/package.json @@ -1,6 +1,6 @@ { "name": "@lodestar/flare", - "version": "1.18.0", + "version": "1.18.1", "description": "Beacon chain debugging tool", "author": "ChainSafe Systems", "license": "Apache-2.0", @@ -60,12 +60,12 @@ "dependencies": { "@chainsafe/bls": "7.1.3", "@chainsafe/bls-keygen": "^0.4.0", - "@lodestar/api": "^1.18.0", - "@lodestar/config": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/state-transition": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/api": "^1.18.1", + "@lodestar/config": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/state-transition": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", "source-map-support": "^0.5.21", "yargs": "^17.7.1" }, diff --git a/packages/fork-choice/package.json b/packages/fork-choice/package.json index 07f887de7350..09d2bebe9427 100644 --- a/packages/fork-choice/package.json +++ b/packages/fork-choice/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": "./lib/index.js", "types": "./lib/index.d.ts", @@ -37,11 +37,11 @@ }, "dependencies": { "@chainsafe/ssz": "^0.15.1", - "@lodestar/config": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/state-transition": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0" + "@lodestar/config": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/state-transition": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1" }, "keywords": [ "ethereum", diff --git a/packages/light-client/package.json b/packages/light-client/package.json index b586e793f935..641cec171823 100644 --- a/packages/light-client/package.json +++ b/packages/light-client/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -68,11 +68,11 @@ "@chainsafe/bls": "7.1.3", "@chainsafe/persistent-merkle-tree": "^0.7.1", "@chainsafe/ssz": "^0.15.1", - "@lodestar/api": "^1.18.0", - "@lodestar/config": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/api": "^1.18.1", + "@lodestar/config": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", "mitt": "^3.0.0" }, "devDependencies": { diff --git a/packages/logger/package.json b/packages/logger/package.json index 6928827a4eb5..0caf2bf87786 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -66,14 +66,14 @@ }, "types": "lib/index.d.ts", "dependencies": { - "@lodestar/utils": "^1.18.0", + "@lodestar/utils": "^1.18.1", "winston": "^3.8.2", "winston-daily-rotate-file": "^4.7.1", "winston-transport": "^4.5.0" }, "devDependencies": { "@chainsafe/threads": "^1.11.1", - "@lodestar/test-utils": "^1.18.0", + "@lodestar/test-utils": "^1.18.1", "@types/triple-beam": "^1.3.2", "triple-beam": "^1.3.0" }, diff --git a/packages/params/package.json b/packages/params/package.json index b02188e8a49f..47c86756688c 100644 --- a/packages/params/package.json +++ b/packages/params/package.json @@ -1,6 +1,6 @@ { "name": "@lodestar/params", - "version": "1.18.0", + "version": "1.18.1", "description": "Chain parameters required for lodestar", "author": "ChainSafe Systems", "license": "Apache-2.0", diff --git a/packages/prover/package.json b/packages/prover/package.json index 339178cd855f..9a90d27055a6 100644 --- a/packages/prover/package.json +++ b/packages/prover/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -69,13 +69,13 @@ "@ethereumjs/tx": "^4.1.2", "@ethereumjs/util": "^8.0.6", "@ethereumjs/vm": "^6.4.2", - "@lodestar/api": "^1.18.0", - "@lodestar/config": "^1.18.0", - "@lodestar/light-client": "^1.18.0", - "@lodestar/logger": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/api": "^1.18.1", + "@lodestar/config": "^1.18.1", + "@lodestar/light-client": "^1.18.1", + "@lodestar/logger": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", "ethereum-cryptography": "^2.0.0", "find-up": "^6.3.0", "http-proxy": "^1.18.1", @@ -84,7 +84,7 @@ "yargs": "^17.7.1" }, "devDependencies": { - "@lodestar/test-utils": "^1.18.0", + "@lodestar/test-utils": "^1.18.1", "@types/http-proxy": "^1.17.10", "@types/yargs": "^17.0.24", "axios": "^1.3.4", diff --git a/packages/reqresp/package.json b/packages/reqresp/package.json index 0b570a61a00c..1db19c418cdb 100644 --- a/packages/reqresp/package.json +++ b/packages/reqresp/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -54,9 +54,9 @@ "dependencies": { "@chainsafe/fast-crc32c": "^4.1.1", "@libp2p/interface": "^1.1.1", - "@lodestar/config": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/config": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/utils": "^1.18.1", "it-all": "^3.0.4", "it-pipe": "^3.0.1", "snappy": "^7.2.2", @@ -65,8 +65,8 @@ "uint8arraylist": "^2.4.7" }, "devDependencies": { - "@lodestar/logger": "^1.18.0", - "@lodestar/types": "^1.18.0", + "@lodestar/logger": "^1.18.1", + "@lodestar/types": "^1.18.1", "libp2p": "1.1.1" }, "peerDependencies": { diff --git a/packages/spec-test-util/package.json b/packages/spec-test-util/package.json index 8990a2b8cd0b..fef33c0f6e31 100644 --- a/packages/spec-test-util/package.json +++ b/packages/spec-test-util/package.json @@ -1,6 +1,6 @@ { "name": "@lodestar/spec-test-util", - "version": "1.18.0", + "version": "1.18.1", "description": "Spec test suite generator from yaml test files", "author": "ChainSafe Systems", "license": "Apache-2.0", @@ -62,7 +62,7 @@ "blockchain" ], "dependencies": { - "@lodestar/utils": "^1.18.0", + "@lodestar/utils": "^1.18.1", "axios": "^1.3.4", "rimraf": "^4.4.1", "snappyjs": "^0.7.0", diff --git a/packages/state-transition/package.json b/packages/state-transition/package.json index c860eea857c5..c2ab59b045ad 100644 --- a/packages/state-transition/package.json +++ b/packages/state-transition/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -64,10 +64,10 @@ "@chainsafe/persistent-merkle-tree": "^0.7.1", "@chainsafe/persistent-ts": "^0.19.1", "@chainsafe/ssz": "^0.15.1", - "@lodestar/config": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/config": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", "bigint-buffer": "^1.1.5", "buffer-xor": "^2.0.2" }, diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index eeb793447ada..bfb7d13c2c25 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@lodestar/test-utils", "private": true, - "version": "1.18.0", + "version": "1.18.1", "description": "Test utilities reused across other packages", "author": "ChainSafe Systems", "license": "Apache-2.0", @@ -59,8 +59,8 @@ "dependencies": { "@chainsafe/bls": "7.1.3", "@chainsafe/bls-keystore": "^3.0.1", - "@lodestar/params": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/params": "^1.18.1", + "@lodestar/utils": "^1.18.1", "axios": "^1.3.4", "testcontainers": "^10.2.1", "tmp": "^0.2.1", diff --git a/packages/types/package.json b/packages/types/package.json index 51ab11d9f316..7c2fecaf7056 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": { ".": { @@ -74,7 +74,7 @@ "types": "lib/index.d.ts", "dependencies": { "@chainsafe/ssz": "^0.15.1", - "@lodestar/params": "^1.18.0", + "@lodestar/params": "^1.18.1", "ethereum-cryptography": "^2.0.0" }, "keywords": [ diff --git a/packages/utils/package.json b/packages/utils/package.json index 0be65a06e329..99172fdefc19 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/ChainSafe/lodestar/issues" }, - "version": "1.18.0", + "version": "1.18.1", "type": "module", "exports": "./lib/index.js", "files": [ diff --git a/packages/validator/package.json b/packages/validator/package.json index 0f0b0c32eab6..c297b50a484f 100644 --- a/packages/validator/package.json +++ b/packages/validator/package.json @@ -1,6 +1,6 @@ { "name": "@lodestar/validator", - "version": "1.18.0", + "version": "1.18.1", "description": "A Typescript implementation of the validator client", "author": "ChainSafe Systems", "license": "LGPL-3.0", @@ -47,17 +47,17 @@ "dependencies": { "@chainsafe/bls": "7.1.3", "@chainsafe/ssz": "^0.15.1", - "@lodestar/api": "^1.18.0", - "@lodestar/config": "^1.18.0", - "@lodestar/db": "^1.18.0", - "@lodestar/params": "^1.18.0", - "@lodestar/state-transition": "^1.18.0", - "@lodestar/types": "^1.18.0", - "@lodestar/utils": "^1.18.0", + "@lodestar/api": "^1.18.1", + "@lodestar/config": "^1.18.1", + "@lodestar/db": "^1.18.1", + "@lodestar/params": "^1.18.1", + "@lodestar/state-transition": "^1.18.1", + "@lodestar/types": "^1.18.1", + "@lodestar/utils": "^1.18.1", "strict-event-emitter-types": "^2.0.0" }, "devDependencies": { - "@lodestar/test-utils": "^1.18.0", + "@lodestar/test-utils": "^1.18.1", "bigint-buffer": "^1.1.5", "rimraf": "^4.4.1" }