Skip to content

Commit 74fdc78

Browse files
committed
wip: REPLACE THIS COMMIT
1 parent 71183e4 commit 74fdc78

File tree

8 files changed

+19
-4
lines changed

8 files changed

+19
-4
lines changed

packages/beacon-node/test/e2e/network/mdns.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe.skip("mdns", function () {
8686

8787
const opts = await getOpts(peerId);
8888

89-
const modules: Omit<NetworkInitModules, "opts" | "peerId" | "logger"> = {
89+
const modules: Omit<NetworkInitModules, "opts" | "peerId" | "logger" | "nodeId"> = {
9090
config,
9191
chain,
9292
db,

packages/beacon-node/test/e2e/network/onWorker/dataSerialization.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe.skip("data serialization through worker boundary", function () {
7979

8080
// Defining tests in this notation ensures that any event data is tested and probably safe to send
8181
const networkEventData = filterByUsedEvents<NetworkEventData>(networkEventDirection, {
82-
[NetworkEvent.peerConnected]: {peer, status: statusZero},
82+
[NetworkEvent.peerConnected]: {peer, status: statusZero, dataColumns: []},
8383
[NetworkEvent.peerDisconnected]: {peer},
8484
[NetworkEvent.reqRespRequest]: {
8585
request: {method: ReqRespMethod.Status, body: statusZero},

packages/beacon-node/test/perf/chain/produceBlock/produceBlockBody.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import crypto from "node:crypto";
12
import {fromHexString} from "@chainsafe/ssz";
23
import {itBench} from "@dapplion/benchmark";
34
import {config} from "@lodestar/config/default";
@@ -38,6 +39,7 @@ describe("produceBlockBody", () => {
3839
minSameMessageSignatureSetsToBatch: 32,
3940
},
4041
{
42+
nodeId: Buffer.alloc(32, crypto.randomBytes(32)),
4143
config: state.config,
4244
db,
4345
logger,

packages/beacon-node/test/perf/chain/verifyImportBlocks.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import crypto from "node:crypto";
12
import {itBench, setBenchOpts} from "@dapplion/benchmark";
23
import {config} from "@lodestar/config/default";
34
import {SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY, SLOTS_PER_EPOCH} from "@lodestar/params";
@@ -94,6 +95,7 @@ describe.skip("verify+import blocks - range sync perf test", () => {
9495
minSameMessageSignatureSetsToBatch: 32,
9596
},
9697
{
98+
nodeId: Buffer.alloc(32, crypto.randomBytes(32)),
9799
config: state.config,
98100
db,
99101
logger,

packages/beacon-node/test/spec/presets/fork_choice.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from "node:path";
2+
import crypto from "node:crypto";
23
import {expect} from "vitest";
34
import {toHexString} from "@chainsafe/ssz";
45
import {BeaconStateAllForks, isExecutionStateType, signedBlockToSignedHeader} from "@lodestar/state-transition";
@@ -99,6 +100,7 @@ const forkChoiceTest =
99100
assertCorrectProgressiveBalances,
100101
},
101102
{
103+
nodeId: Buffer.alloc(32, crypto.randomBytes(32)),
102104
config: createBeaconConfig(config, state.genesisValidatorsRoot),
103105
db: getMockedBeaconDb(),
104106
logger,

packages/beacon-node/test/unit/chain/seenCache/seenGossipBlockInput.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ describe("SeenGossipBlockInput", () => {
1515
});
1616
const genesisValidatorsRoot = Buffer.alloc(32, 0xaa);
1717
const config = createBeaconConfig(chainConfig, genesisValidatorsRoot);
18-
const seenGossipBlockInput = new SeenGossipBlockInput();
18+
const seenGossipBlockInput = new SeenGossipBlockInput({
19+
custodyColumns: [],
20+
custodyColumnsIndex: [],
21+
custodyColumnsLen: 0,
22+
});
1923

2024
// array of numBlobs, events where events are array of
2125
// [block|blob11|blob2, pd | bp | null | error string reflecting the expected result]

packages/beacon-node/test/unit/db/api/repositories/dataColumn.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ describe("block archive repository", function () {
5353
singedBlock.message.body.blobKzgCommitments.push(commitment);
5454
singedBlock.message.body.blobKzgCommitments.push(commitment);
5555
singedBlock.message.body.blobKzgCommitments.push(commitment);
56-
const dataColumnSidecars = computeDataColumnSidecars(config, singedBlock, {blobs: [blob, blob, blob]});
56+
const dataColumnSidecars = computeDataColumnSidecars(config, singedBlock, {
57+
blobs: [blob, blob, blob],
58+
kzgProofs: [commitment, commitment, commitment],
59+
});
5760
for (let j = 0; j < dataColumnSidecars.length; j++) {
5861
dataColumnSidecars[j].index = j;
5962
}

packages/beacon-node/test/utils/networkWithMockDb.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import crypto from "node:crypto";
12
import {createSecp256k1PeerId} from "@libp2p/peer-id-factory";
23
import {ChainForkConfig, createBeaconConfig} from "@lodestar/config";
34
import {ssz} from "@lodestar/types";
@@ -56,6 +57,7 @@ export async function getNetworkForTest(
5657
minSameMessageSignatureSetsToBatch: 32,
5758
},
5859
{
60+
nodeId: Buffer.alloc(32, crypto.randomBytes(32)),
5961
config: beaconConfig,
6062
db,
6163
logger,

0 commit comments

Comments
 (0)