From d311ba46d1f52d669e5bde606820bdb427bf803a Mon Sep 17 00:00:00 2001 From: Oleksandr Hrab Date: Wed, 24 Dec 2025 11:50:05 +0200 Subject: [PATCH] fix: return cancun --- src/cli/commands/bootstrap/bootstrap.genesis-prompts.test.ts | 1 + .../commands/bootstrap/bootstrap.selective-artifacts.test.ts | 1 + src/genesis/besu-genesis.service.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/cli/commands/bootstrap/bootstrap.genesis-prompts.test.ts b/src/cli/commands/bootstrap/bootstrap.genesis-prompts.test.ts index b66b257..1150cf6 100644 --- a/src/cli/commands/bootstrap/bootstrap.genesis-prompts.test.ts +++ b/src/cli/commands/bootstrap/bootstrap.genesis-prompts.test.ts @@ -57,6 +57,7 @@ const createServiceStub = () => { berlinBlock: 0, londonBlock: 0, shanghaiTime: 0, + cancunTime: 0, zeroBaseFee: true, }, nonce: "0x0", diff --git a/src/cli/commands/bootstrap/bootstrap.selective-artifacts.test.ts b/src/cli/commands/bootstrap/bootstrap.selective-artifacts.test.ts index 069635c..21328aa 100644 --- a/src/cli/commands/bootstrap/bootstrap.selective-artifacts.test.ts +++ b/src/cli/commands/bootstrap/bootstrap.selective-artifacts.test.ts @@ -49,6 +49,7 @@ const createSamplePayload = (filter: ArtifactFilter): OutputPayload => ({ berlinBlock: 0, muirGlacierBlock: 0, shanghaiTime: 0, + cancunTime: 0, zeroBaseFee: false, qbft: { blockperiodseconds: 5, diff --git a/src/genesis/besu-genesis.service.ts b/src/genesis/besu-genesis.service.ts index 01b857a..761cab0 100644 --- a/src/genesis/besu-genesis.service.ts +++ b/src/genesis/besu-genesis.service.ts @@ -36,6 +36,7 @@ type BesuGenesisConfig = { readonly berlinBlock: number; readonly londonBlock: number; readonly shanghaiTime: number; + readonly cancunTime: number; readonly zeroBaseFee: boolean; readonly contractSizeLimit?: number; readonly evmStackSize?: number; @@ -117,6 +118,7 @@ export class BesuGenesisService { berlinBlock: 0, londonBlock: 0, shanghaiTime: 0, + cancunTime: 0, zeroBaseFee: (config.gasPrice ?? 0) === 0, contractSizeLimit: config.contractSizeLimit, evmStackSize: config.evmStackSize,