Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Aug 15, 2023
1 parent fca93ed commit 19053e0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

- name: Upload debug log test files for "packages/cli"
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: debug-test-logs-cli
path: packages/cli/test-logs
10 changes: 8 additions & 2 deletions packages/cli/test/sim/backup_eth_provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ const node2 = await env.createNodePair({
id: "node-2",
// As the Lodestar running on host and the geth running in docker container
// we have to replace the IP with the local ip to connect to the geth
beacon: {type: BeaconClient.Lodestar, options: {engineUrls: [replaceIpFromUrl(env.nodes[0].execution.engineRpcUrl, "127.0.0.1")]}},
beacon: {
type: BeaconClient.Lodestar,
options: {engineUrls: [replaceIpFromUrl(env.nodes[0].execution.engineRpcUrl, "127.0.0.1")]},
},
execution: ExecutionClient.Geth,
keysCount: 32,
});
Expand All @@ -74,7 +77,10 @@ const node3 = await env.createNodePair({
id: "node-3",
// As the Lodestar running on host and the geth running in docker container
// we have to replace the IP with the local ip to connect to the geth
beacon: {type: BeaconClient.Lodestar, options: {engineUrls: [replaceIpFromUrl(env.nodes[0].execution.engineRpcUrl, "127.0.0.1")]}},
beacon: {
type: BeaconClient.Lodestar,
options: {engineUrls: [replaceIpFromUrl(env.nodes[0].execution.engineRpcUrl, "127.0.0.1")]},
},
execution: ExecutionClient.Geth,
keysCount: 0,
});
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/test/utils/simulation/TableReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export class TableReporter extends SimulationReporter<typeof defaultAssertions>
const participation: {head: number; source: number; target: number}[] = [];

for (const node of nodes) {
participation.push(stores["attestationParticipation"][node.beacon.id][slot] ?? {head: 0, source: 0, target: 0});
participation.push(
stores["attestationParticipation"][node.beacon.id][slot] ?? {head: 0, source: 0, target: 0}
);
const syncCommitteeParticipation: number[] = [];
for (let slot = startSlot; slot <= endSlot; slot++) {
syncCommitteeParticipation.push(stores["syncCommitteeParticipation"][node.beacon.id][slot] ?? 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ExecutionStartMode,
} from "../interfaces.js";
import {getEstimatedShanghaiTime} from "../utils/index.js";
import {getGethGenesisBlock} from "../utils/el_genesis.js";
import {getGethGenesisBlock} from "../utils/execution_genesis.js";
import {ensureDirectories} from "../utils/paths.js";
import {generateGethNode} from "./geth.js";
import {generateMockNode} from "./mock.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import got from "got";
import {ZERO_HASH} from "@lodestar/state-transition";
import {Eth1ProviderWithAdmin} from "../Eth1ProviderWithAdmin.js";
import {ExecutionClient, ExecutionNodeGenerator, JobOptions, RunnerType} from "../interfaces.js";
import {getNethermindChainSpec} from "../utils/el_genesis.js";
import {getNethermindChainSpec} from "../utils/execution_genesis.js";
import {getNodeMountedPaths} from "../utils/paths.js";
import {SHARED_JWT_SECRET} from "../constants.js";
import {getNodePorts} from "../utils/ports.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import {SIM_ENV_CHAIN_ID, SIM_ENV_NETWORK_ID} from "../constants.js";
import {ExecutionGenesisOptions, ExecutionStartMode, Eth1GenesisBlock} from "../interfaces.js";

export const getGethGenesisBlock = (mode: ExecutionStartMode, options: ExecutionGenesisOptions): Record<string, unknown> => {
export const getGethGenesisBlock = (
mode: ExecutionStartMode,
options: ExecutionGenesisOptions
): Record<string, unknown> => {
const {ttd, cliqueSealingPeriod, shanghaiTime, genesisTime} = options;

const genesis = {
Expand Down

0 comments on commit 19053e0

Please sign in to comment.