Skip to content

Commit

Permalink
chore: release v1.9.1 (#5718)
Browse files Browse the repository at this point in the history
  • Loading branch information
philknows authored Jun 30, 2023
2 parents 1cdf098 + 0bccd9f commit 6845eec
Show file tree
Hide file tree
Showing 24 changed files with 122 additions and 105 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"npmClient": "yarn",
"useWorkspaces": true,
"useNx": true,
"version": "1.9.0",
"version": "1.9.1",
"stream": "true",
"command": {
"version": {
Expand Down
10 changes: 5 additions & 5 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"version": "1.9.0",
"version": "1.9.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -71,10 +71,10 @@
"dependencies": {
"@chainsafe/persistent-merkle-tree": "^0.5.0",
"@chainsafe/ssz": "^0.10.2",
"@lodestar/config": "^1.9.0",
"@lodestar/params": "^1.9.0",
"@lodestar/types": "^1.9.0",
"@lodestar/utils": "^1.9.0",
"@lodestar/config": "^1.9.1",
"@lodestar/params": "^1.9.1",
"@lodestar/types": "^1.9.1",
"@lodestar/utils": "^1.9.1",
"cross-fetch": "^3.1.4",
"eventsource": "^2.0.2",
"qs": "^6.11.1"
Expand Down
26 changes: 13 additions & 13 deletions packages/beacon-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"version": "1.9.0",
"version": "1.9.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -118,18 +118,18 @@
"@libp2p/peer-id-factory": "^2.0.1",
"@libp2p/prometheus-metrics": "^1.1.3",
"@libp2p/tcp": "6.1.0",
"@lodestar/api": "^1.9.0",
"@lodestar/config": "^1.9.0",
"@lodestar/db": "^1.9.0",
"@lodestar/fork-choice": "^1.9.0",
"@lodestar/light-client": "^1.9.0",
"@lodestar/logger": "^1.9.0",
"@lodestar/params": "^1.9.0",
"@lodestar/reqresp": "^1.9.0",
"@lodestar/state-transition": "^1.9.0",
"@lodestar/types": "^1.9.0",
"@lodestar/utils": "^1.9.0",
"@lodestar/validator": "^1.9.0",
"@lodestar/api": "^1.9.1",
"@lodestar/config": "^1.9.1",
"@lodestar/db": "^1.9.1",
"@lodestar/fork-choice": "^1.9.1",
"@lodestar/light-client": "^1.9.1",
"@lodestar/logger": "^1.9.1",
"@lodestar/params": "^1.9.1",
"@lodestar/reqresp": "^1.9.1",
"@lodestar/state-transition": "^1.9.1",
"@lodestar/types": "^1.9.1",
"@lodestar/utils": "^1.9.1",
"@lodestar/validator": "^1.9.1",
"@multiformats/multiaddr": "^11.0.0",
"@types/datastore-level": "^3.0.0",
"buffer-xor": "^2.0.2",
Expand Down
33 changes: 21 additions & 12 deletions packages/beacon-node/src/network/gossip/gossipsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,30 @@ export class Eth2Gossipsub extends GossipSub {
// Get seenTimestamp before adding the message to the queue or add async delays
const seenTimestampSec = Date.now() / 1000;

// Emit message to network processor
this.events.emit(NetworkEvent.pendingGossipsubMessage, {
topic,
msg,
msgId,
// Hot path, use cached .toString() version
propagationSource: propagationSource.toString(),
seenTimestampSec,
startProcessUnixSec: null,
});
// Use setTimeout to yield to the macro queue
// Without this we'll have huge event loop lag
// See https://github.com/ChainSafe/lodestar/issues/5604
setTimeout(() => {
this.events.emit(NetworkEvent.pendingGossipsubMessage, {
topic,
msg,
msgId,
// Hot path, use cached .toString() version
propagationSource: propagationSource.toString(),
seenTimestampSec,
startProcessUnixSec: null,
});
}, 0);
}

private onValidationResult(data: NetworkEventData[NetworkEvent.gossipMessageValidationResult]): void {
// TODO: reportMessageValidationResult should take PeerIdStr since it only uses string version
this.reportMessageValidationResult(data.msgId, peerIdFromString(data.propagationSource), data.acceptance);
// Use setTimeout to yield to the macro queue
// Without this we'll have huge event loop lag
// See https://github.com/ChainSafe/lodestar/issues/5604
setTimeout(() => {
// TODO: reportMessageValidationResult should take PeerIdStr since it only uses string version
this.reportMessageValidationResult(data.msgId, peerIdFromString(data.propagationSource), data.acceptance);
}, 0);
}
}

Expand Down
3 changes: 2 additions & 1 deletion packages/beacon-node/src/network/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ export class Network implements INetwork {
// Drop all the gossip validation queues
this.networkProcessor.dropAllJobs();

return this.core.unsubscribeGossipCoreTopics();
await this.core.unsubscribeGossipCoreTopics();
this.subscribedToCoreTopics = false;
}

isSubscribedToGossipCoreTopics(): boolean {
Expand Down
4 changes: 4 additions & 0 deletions packages/beacon-node/src/network/processor/gossipHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ export function getGossipHandlers(modules: ValidatorFnsModules, options: GossipH

chain
.processBlock(blockInput, {
// block may be downloaded and processed by UnknownBlockSync
ignoreIfKnown: true,
// proposer signature already checked in validateBeaconBlock()
validProposerSignature: true,
// blobsSidecar already checked in validateGossipBlobsSidecar()
Expand All @@ -162,6 +164,8 @@ export function getGossipHandlers(modules: ValidatorFnsModules, options: GossipH
.catch((e) => {
if (e instanceof BlockError) {
switch (e.type.code) {
// ALREADY_KNOWN should not happen with ignoreIfKnown=true above
// PARENT_UNKNOWN should not happen, we handled this in validateBeaconBlock() function above
case BlockErrorCode.ALREADY_KNOWN:
case BlockErrorCode.PARENT_UNKNOWN:
case BlockErrorCode.PRESTATE_MISSING:
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-node/src/sync/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ export class BeaconSync implements IBeaconSync {
else if (state !== SyncState.Synced) {
const syncDiff = this.chain.clock.currentSlot - this.chain.forkChoice.getHead().slot;
if (syncDiff > this.slotImportTolerance * 2) {
this.logger.warn(`Node sync has fallen behind by ${syncDiff} slots`);
if (this.network.isSubscribedToGossipCoreTopics()) {
this.logger.warn(`Node sync has fallen behind by ${syncDiff} slots`);
this.network
.unsubscribeGossipCoreTopics()
.then(() => {
Expand Down
24 changes: 12 additions & 12 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chainsafe/lodestar",
"version": "1.9.0",
"version": "1.9.1",
"description": "Command line interface for lodestar",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
Expand Down Expand Up @@ -60,17 +60,17 @@
"@chainsafe/discv5": "^3.0.0",
"@chainsafe/ssz": "^0.10.2",
"@libp2p/peer-id-factory": "^2.0.3",
"@lodestar/api": "^1.9.0",
"@lodestar/beacon-node": "^1.9.0",
"@lodestar/config": "^1.9.0",
"@lodestar/db": "^1.9.0",
"@lodestar/light-client": "^1.9.0",
"@lodestar/logger": "^1.9.0",
"@lodestar/params": "^1.9.0",
"@lodestar/state-transition": "^1.9.0",
"@lodestar/types": "^1.9.0",
"@lodestar/utils": "^1.9.0",
"@lodestar/validator": "^1.9.0",
"@lodestar/api": "^1.9.1",
"@lodestar/beacon-node": "^1.9.1",
"@lodestar/config": "^1.9.1",
"@lodestar/db": "^1.9.1",
"@lodestar/light-client": "^1.9.1",
"@lodestar/logger": "^1.9.1",
"@lodestar/params": "^1.9.1",
"@lodestar/state-transition": "^1.9.1",
"@lodestar/types": "^1.9.1",
"@lodestar/utils": "^1.9.1",
"@lodestar/validator": "^1.9.1",
"@multiformats/multiaddr": "^11.0.0",
"@types/lockfile": "^1.0.2",
"bip39": "^3.1.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/cli/src/cmds/beacon/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void
try {
await node.close();
logger.debug("Beacon node closed");
// Explicitly exit until active handles issue is resolved
// See https://github.com/ChainSafe/lodestar/issues/5642
process.exit(0);
} catch (e) {
logger.error("Error closing beacon node", {}, e as Error);
// Make sure db is always closed gracefully
Expand Down
6 changes: 3 additions & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lodestar/config",
"version": "1.9.0",
"version": "1.9.1",
"description": "Chain configuration required for lodestar",
"author": "ChainSafe Systems",
"license": "Apache-2.0",
Expand Down Expand Up @@ -65,7 +65,7 @@
],
"dependencies": {
"@chainsafe/ssz": "^0.10.2",
"@lodestar/params": "^1.9.0",
"@lodestar/types": "^1.9.0"
"@lodestar/params": "^1.9.1",
"@lodestar/types": "^1.9.1"
}
}
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ export const gnosisChainConfig: ChainConfig = {
BELLATRIX_FORK_EPOCH: 385536,
// Capella
CAPELLA_FORK_VERSION: b("0x03000064"),
CAPELLA_FORK_EPOCH: Infinity,
CAPELLA_FORK_EPOCH: 648704, // 2023-08-01T11:34:20.000Z
};
8 changes: 4 additions & 4 deletions packages/db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lodestar/db",
"version": "1.9.0",
"version": "1.9.1",
"description": "DB modules of Lodestar",
"author": "ChainSafe Systems",
"homepage": "https://github.com/ChainSafe/lodestar#readme",
Expand Down Expand Up @@ -38,13 +38,13 @@
},
"dependencies": {
"@chainsafe/ssz": "^0.10.2",
"@lodestar/config": "^1.9.0",
"@lodestar/utils": "^1.9.0",
"@lodestar/config": "^1.9.1",
"@lodestar/utils": "^1.9.1",
"@types/levelup": "^4.3.3",
"it-all": "^3.0.1",
"level": "^8.0.0"
},
"devDependencies": {
"@lodestar/logger": "^1.9.0"
"@lodestar/logger": "^1.9.1"
}
}
10 changes: 5 additions & 5 deletions packages/flare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lodestar/flare",
"version": "1.9.0",
"version": "1.9.1",
"description": "Beacon chain debugging tool",
"author": "ChainSafe Systems",
"license": "Apache-2.0",
Expand Down Expand Up @@ -58,10 +58,10 @@
"blockchain"
],
"dependencies": {
"@lodestar/api": "^1.9.0",
"@lodestar/config": "^1.9.0",
"@lodestar/state-transition": "^1.9.0",
"@lodestar/types": "^1.9.0",
"@lodestar/api": "^1.9.1",
"@lodestar/config": "^1.9.1",
"@lodestar/state-transition": "^1.9.1",
"@lodestar/types": "^1.9.1",
"source-map-support": "^0.5.21",
"yargs": "^17.7.1"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/fork-choice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"version": "1.9.0",
"version": "1.9.1",
"type": "module",
"exports": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -39,11 +39,11 @@
},
"dependencies": {
"@chainsafe/ssz": "^0.10.2",
"@lodestar/config": "^1.9.0",
"@lodestar/params": "^1.9.0",
"@lodestar/state-transition": "^1.9.0",
"@lodestar/types": "^1.9.0",
"@lodestar/utils": "^1.9.0"
"@lodestar/config": "^1.9.1",
"@lodestar/params": "^1.9.1",
"@lodestar/state-transition": "^1.9.1",
"@lodestar/types": "^1.9.1",
"@lodestar/utils": "^1.9.1"
},
"keywords": [
"ethereum",
Expand Down
14 changes: 7 additions & 7 deletions packages/light-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"version": "1.9.0",
"version": "1.9.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -67,12 +67,12 @@
"@chainsafe/bls": "7.1.1",
"@chainsafe/persistent-merkle-tree": "^0.5.0",
"@chainsafe/ssz": "^0.10.2",
"@lodestar/api": "^1.9.0",
"@lodestar/config": "^1.9.0",
"@lodestar/params": "^1.9.0",
"@lodestar/state-transition": "^1.9.0",
"@lodestar/types": "^1.9.0",
"@lodestar/utils": "^1.9.0",
"@lodestar/api": "^1.9.1",
"@lodestar/config": "^1.9.1",
"@lodestar/params": "^1.9.1",
"@lodestar/state-transition": "^1.9.1",
"@lodestar/types": "^1.9.1",
"@lodestar/utils": "^1.9.1",
"cross-fetch": "^3.1.4",
"mitt": "^3.0.0",
"strict-event-emitter-types": "^2.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"version": "1.9.0",
"version": "1.9.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -61,7 +61,7 @@
},
"types": "lib/index.d.ts",
"dependencies": {
"@lodestar/utils": "^1.9.0",
"@lodestar/utils": "^1.9.1",
"winston": "^3.8.2",
"winston-daily-rotate-file": "^4.7.1",
"winston-transport": "^4.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/params/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lodestar/params",
"version": "1.9.0",
"version": "1.9.1",
"description": "Chain parameters required for lodestar",
"author": "ChainSafe Systems",
"license": "Apache-2.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/prover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"version": "1.9.0",
"version": "1.9.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -68,11 +68,11 @@
"@ethereumjs/tx": "^4.1.2",
"@ethereumjs/util": "^8.0.6",
"@ethereumjs/vm": "^6.4.2",
"@lodestar/api": "^1.9.0",
"@lodestar/config": "^1.9.0",
"@lodestar/light-client": "^1.9.0",
"@lodestar/types": "^1.9.0",
"@lodestar/utils": "^1.9.0",
"@lodestar/api": "^1.9.1",
"@lodestar/config": "^1.9.1",
"@lodestar/light-client": "^1.9.1",
"@lodestar/types": "^1.9.1",
"@lodestar/utils": "^1.9.1",
"ethereum-cryptography": "^1.2.0",
"find-up": "^6.3.0",
"http-proxy": "^1.18.1",
Expand All @@ -82,7 +82,7 @@
"yargs": "^17.7.1"
},
"devDependencies": {
"@lodestar/logger": "^1.9.0",
"@lodestar/logger": "^1.9.1",
"@types/http-proxy": "^1.17.10",
"@types/yargs": "^17.0.24",
"axios": "^1.3.4",
Expand Down
Loading

0 comments on commit 6845eec

Please sign in to comment.