Skip to content

Commit

Permalink
Merge pull request #47 from ethpandaops/fix-ttd-mismatch
Browse files Browse the repository at this point in the history
fix ttd mismatch
  • Loading branch information
parithosh committed Jul 19, 2023
2 parents 8d45ff7 + 7f1ce84 commit 998a495
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 998a495

Please sign in to comment.