Skip to content

Commit 828e9ff

Browse files
committed
Enable post-merge dev mode
- Enables querying "finalized" blocks. - Update geth. The post merge dev mode doesn't seem very well documented. It was added in this PR: ethereum/go-ethereum#28463 To get a working genesis block, this workaround is needed - geth --datadir /path/to/data --dev - shut down geth - geth --datadir /path/to/data dumpgenesis Close #12
1 parent 5e61d9c commit 828e9ff

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Dockerfile.l1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM ethereum/client-go:v1.13.0
1+
FROM ethereum/client-go:v1.13.14
22

33
RUN apk add --no-cache jq curl
44

55
COPY entrypoint-l1.sh /entrypoint.sh
66

77
VOLUME ["/db"]
88

9-
HEALTHCHECK --start-period=300s --start-interval=1s CMD curl --fail http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'
9+
# HEALTHCHECK --start-period=300s --start-interval=1s CMD curl --fail http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'
1010

1111
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]

config/genesis-staging.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"londonBlock": 0,
1515
"arrowGlacierBlock": 0,
1616
"grayGlacierBlock": 0,
17-
"clique": {
18-
"period": 12,
19-
"epoch": 30000
20-
}
17+
"shanghaiTime": 0,
18+
"terminalTotalDifficulty": 0,
19+
"terminalTotalDifficultyPassed": true,
20+
"isDev": true
2121
},
2222
"nonce": "0x0",
2323
"timestamp": "0x6511b40b",

entrypoint-l1.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ fi
3838
# pruned within minutes of starting the devnet.
3939

4040
exec geth \
41+
--dev \
42+
--dev.period=12 \
4143
--datadir="$GETH_DATA_DIR" \
4244
--verbosity="$VERBOSITY" \
4345
--http \

0 commit comments

Comments
 (0)