From 9e46911368f1ee8318df3844208c6b1709f23495 Mon Sep 17 00:00:00 2001 From: parithosh Date: Thu, 28 Mar 2024 16:47:51 +0100 Subject: [PATCH] fix ttd reading --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a1075d2..4fb5813 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,7 +14,7 @@ gen_shared_files(){ echo -n 0x$(openssl rand -hex 32 | tr -d "\n") > /data/jwt/jwtsecret fi if [ -f "/data/custom_config_data/genesis.json" ]; then - terminalTotalDifficulty=$(cat /data/custom_config_data/genesis.json | jq -r '.config.terminalTotalDifficulty') + terminalTotalDifficulty=$(cat /data/custom_config_data/genesis.json | jq -r '.config.terminalTotalDifficulty | tostring') sed -i "s/TERMINAL_TOTAL_DIFFICULTY:.*/TERMINAL_TOTAL_DIFFICULTY: $terminalTotalDifficulty/" /data/custom_config_data/config.yaml fi }