Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const createServiceStub = () => {
berlinBlock: 0,
londonBlock: 0,
shanghaiTime: 0,
cancunTime: 0,
zeroBaseFee: true,
},
nonce: "0x0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const createSamplePayload = (filter: ArtifactFilter): OutputPayload => ({
berlinBlock: 0,
muirGlacierBlock: 0,
shanghaiTime: 0,
cancunTime: 0,
Comment on lines 49 to +52
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better readability and to maintain consistency with the chronological order of Ethereum forks, it would be good to reorder these properties. The muirGlacierBlock fork occurred before the berlinBlock fork.

Suggested change
berlinBlock: 0,
muirGlacierBlock: 0,
shanghaiTime: 0,
cancunTime: 0,
muirGlacierBlock: 0,
berlinBlock: 0,
shanghaiTime: 0,
cancunTime: 0,

zeroBaseFee: false,
qbft: {
blockperiodseconds: 5,
Expand Down
2 changes: 2 additions & 0 deletions src/genesis/besu-genesis.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
Loading