From a7da331f6a459c574cfe601b61da6903d68c3a22 Mon Sep 17 00:00:00 2001 From: Pawan Dhananjay Date: Tue, 30 May 2023 01:38:50 +0000 Subject: [PATCH] Fix geth scripts (#4342) ## Issue Addressed N/A ## Proposed Changes Geth's latest release breaks our CI with the following message ``` Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks Shutting down ``` Latest geth version has removed support for PoW networks. Hence, we need to add an extra `terminalTotalDifficultyPassed ` parameter in the genesis config to start from a merged network. --- scripts/local_testnet/genesis.json | 3 ++- scripts/tests/genesis.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/local_testnet/genesis.json b/scripts/local_testnet/genesis.json index f92a5f5d00..3ac553e55b 100644 --- a/scripts/local_testnet/genesis.json +++ b/scripts/local_testnet/genesis.json @@ -13,7 +13,8 @@ "londonBlock": 0, "mergeNetsplitBlock": 0, "shanghaiTime": 0, - "terminalTotalDifficulty": 0 + "terminalTotalDifficulty": 0, + "terminalTotalDifficultyPassed": true }, "alloc": { "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { diff --git a/scripts/tests/genesis.json b/scripts/tests/genesis.json index 985bb9cef8..ec3cd1e813 100644 --- a/scripts/tests/genesis.json +++ b/scripts/tests/genesis.json @@ -12,7 +12,8 @@ "berlinBlock": 0, "londonBlock": 0, "mergeForkBlock": 0, - "terminalTotalDifficulty": 0 + "terminalTotalDifficulty": 0, + "terminalTotalDifficultyPassed": true }, "alloc": { "0x0000000000000000000000000000000000000000": {