We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853ffe9 commit bd1be32Copy full SHA for bd1be32
espresso/docker/op-geth/op-geth-init.sh
@@ -17,7 +17,9 @@ if [ "$MODE" = "genesis" ]; then
17
op-deployer inspect genesis --workdir /deployer --outfile /config/genesis.json $L2_CHAIN_ID
18
19
echo "Updating genesis timestamp..."
20
- dasel put -f /config/genesis.json -s .timestamp -v $(printf '0x%x\n' $(date +%s))
+ # Use environment variable or fallback to the current time.
21
+ GENESIS_TIMESTAMP=${GENESIS_TIMESTAMP:-$(printf '0x%x\n' $(date +%s))}
22
+ dasel put -f /config/genesis.json -s .timestamp -v "$GENESIS_TIMESTAMP"
23
24
if [[ ! -f /config/jwt.txt ]]; then
25
echo "Generating JWT token..."
0 commit comments