Skip to content

Commit 448156f

Browse files
authored
Merge pull request #761 from marioevz/geth-cancun
clients/go-ethereum: Cancun support
2 parents 3d5dbc6 + b9dba3e commit 448156f

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

clients/go-ethereum/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,32 @@ FROM ethereum/client-go:$branch as builder
1717

1818
## ----
1919

20+
## ----
21+
## Uncomment the steps below (and comment out the steps above!) to build
22+
## go-ethereum from a git branch.
23+
24+
# FROM alpine:latest as builder
25+
# ARG user=ethereum
26+
# ARG repo=go-ethereum
27+
# ARG branch=master
28+
# RUN \
29+
# apk add --update bash curl jq go git make gcc musl-dev \
30+
# ca-certificates linux-headers && \
31+
# git clone --depth 1 --branch $branch \
32+
# https://github.com/$user/$repo && \
33+
# (cd go-ethereum && make geth) && \
34+
# (cd go-ethereum && \
35+
# echo "{}" \
36+
# | jq ".+ {\"repo\":\"$(git config --get remote.origin.url)\"}" \
37+
# | jq ".+ {\"branch\":\"$(git rev-parse --abbrev-ref HEAD)\"}" \
38+
# | jq ".+ {\"commit\":\"$(git rev-parse HEAD)\"}" \
39+
# > /version.json) && \
40+
# cp go-ethereum/build/bin/geth /usr/local/bin/geth && \
41+
# apk del go git make gcc musl-dev linux-headers && \
42+
# rm -rf /go-ethereum && rm -rf /var/cache/apk/*
43+
44+
## ----
45+
2046
FROM alpine:latest
2147
RUN apk add --update bash curl jq
2248
COPY --from=builder /usr/local/bin/geth /usr/local/bin/geth

clients/go-ethereum/mapper.jq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def to_bool:
5555
"mergeForkBlock": env.HIVE_MERGE_BLOCK_ID|to_int,
5656
"terminalTotalDifficulty": env.HIVE_TERMINAL_TOTAL_DIFFICULTY|to_int,
5757
"shanghaiTime": env.HIVE_SHANGHAI_TIMESTAMP|to_int,
58+
"cancunTime": env.HIVE_CANCUN_TIMESTAMP|to_int,
5859
"terminalTotalDifficultyPassed": true,
5960
}|remove_empty
6061
}

0 commit comments

Comments
 (0)