Skip to content

Commit

Permalink
Merge branch 'master' into eof-fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 authored Aug 5, 2024
2 parents f0451d7 + d50803e commit 198c917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function parseGethParams(json: any) {
// so the Merge/Paris hardfork block must be 0
if (
config.terminalTotalDifficulty !== undefined &&
(config.terminalTotalDifficulty > 0 || config.terminalTotalDifficultyPassed === false)
(BigInt(difficulty) < BigInt(config.terminalTotalDifficulty) ||
config.terminalTotalDifficultyPassed === false)
) {
throw new Error('nonzero terminal total difficulty is not supported')
}
Expand Down

0 comments on commit 198c917

Please sign in to comment.