Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Nov 22, 2022
1 parent b0f1092 commit 5c4f5d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5c4f5d8

Please sign in to comment.