From 5c4f5d884a3ba1c05df0ff27c57bfeb68bf9a980 Mon Sep 17 00:00:00 2001 From: harkamal Date: Tue, 22 Nov 2022 18:16:45 +0530 Subject: [PATCH] add comment --- packages/common/src/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 58b1a02585..920aa7f5de 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -124,6 +124,11 @@ function parseGethParams(json: any, mergeForkIdPostMerge: boolean = true) { params.hardforks.unshift({ name: Hardfork.Chainstart, block: 0 }) if (config.terminalTotalDifficulty !== undefined) { + // Following points need to be considered for placement of merge hf + // - Merge hardfork can't be placed at genesis + // - Place merge hf before any hardforks that require CL participation for e.g. withdrawals + // - Merge hardfork has to be placed just after genesis if any of the genesis hardforks make CL + // necessary for e.g. withdrawals const mergeConfig = { name: Hardfork.Merge, ttd: config.terminalTotalDifficulty,