From 7f1ce845c2d806109a7bc6514d690a6dbbe3a0c5 Mon Sep 17 00:00:00 2001 From: parithosh Date: Wed, 19 Jul 2023 13:19:54 +0200 Subject: [PATCH] fix ttd mismatch --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 82becae..54a9193 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -18,6 +18,10 @@ gen_shared_files(){ else echo "JWT secret already exists. skipping generation..." fi + if [ -f "/data/custom_config_data/genesis.json" ]; then + terminalTotalDifficulty=$(cat /data/custom_config_data/genesis.json | jq -r '.config.terminalTotalDifficulty') + sed -i "s/TERMINAL_TOTAL_DIFFICULTY:.*/TERMINAL_TOTAL_DIFFICULTY: $terminalTotalDifficulty/" /data/custom_config_data/config.yaml + fi } gen_el_config(){