Skip to content

Commit

Permalink
Merge pull request #107 from ethpandaops/fix-ttd
Browse files Browse the repository at this point in the history
fix ttd reading
  • Loading branch information
parithosh committed Mar 28, 2024
2 parents 29af0d6 + 9e46911 commit 96459e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 96459e4

Please sign in to comment.