Skip to content

Commit b9dba3e

Browse files
authored
Merge branch 'master' into geth-cancun
2 parents 2df7f72 + 3d5dbc6 commit b9dba3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+712
-6029
lines changed

clients/besu/besu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ fi
139139
# Configure RPC.
140140
RPCFLAGS="--host-allowlist=*"
141141
if [ "$HIVE_GRAPHQL_ENABLED" == "" ]; then
142-
RPCFLAGS="$RPCFLAGS --rpc-http-enabled --rpc-http-api=ETH,NET,WEB3,ADMIN --rpc-http-host=0.0.0.0"
142+
RPCFLAGS="$RPCFLAGS --rpc-http-enabled --rpc-http-api=DEBUG,ETH,NET,WEB3,ADMIN --rpc-http-host=0.0.0.0"
143143
else
144144
RPCFLAGS="$RPCFLAGS --graphql-http-enabled --graphql-http-host=0.0.0.0 --graphql-http-port=8545"
145145
fi
146146

147147
# Enable WebSocket.
148-
RPCFLAGS="$RPCFLAGS --rpc-ws-enabled --rpc-ws-api=ETH,NET,WEB3,ADMIN --rpc-ws-host=0.0.0.0"
148+
RPCFLAGS="$RPCFLAGS --rpc-ws-enabled --rpc-ws-api=DEBUG,ETH,NET,WEB3,ADMIN --rpc-ws-host=0.0.0.0"
149149

150150
# Enable merge support if needed
151151
if [ "$HIVE_TERMINAL_TOTAL_DIFFICULTY" != "" ]; then

clients/besu/mapper.jq

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def to_int:
4444
"berlinBlock": env.HIVE_FORK_BERLIN|to_int,
4545
"londonBlock": env.HIVE_FORK_LONDON|to_int,
4646
"parisBlock": env.HIVE_MERGE_BLOCK_ID|to_int,
47-
"shanghaiTime": env.HIVE_SHANGHAI_TIMESTAMP|to_int,
4847
"terminalTotalDifficulty": env.HIVE_TERMINAL_TOTAL_DIFFICULTY|to_int,
48+
"shanghaiTime": env.HIVE_SHANGHAI_TIMESTAMP|to_int,
49+
"cancunTime": env.HIVE_CANCUN_TIMESTAMP|to_int,
4950
}|remove_empty
5051
}

clients/erigon/erigon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ fi
5454
# Create the data directory.
5555
mkdir /erigon-hive-datadir
5656
FLAGS="$FLAGS --datadir /erigon-hive-datadir"
57+
FLAGS="$FLAGS --db.size.limit 2GB"
5758

5859
# If a specific network ID is requested, use that
5960
if [ "$HIVE_NETWORK_ID" != "" ]; then

clients/ethereumjs/mapper.jq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@ def to_bool:
5656
"mergeForkBlock": env.HIVE_MERGE_BLOCK_ID|to_int,
5757
"terminalTotalDifficulty": env.HIVE_TERMINAL_TOTAL_DIFFICULTY|to_int,
5858
"shanghaiTime": env.HIVE_SHANGHAI_TIMESTAMP|to_int,
59+
"cancunTime": env.HIVE_CANCUN_TIMESTAMP|to_int,
5960
}|remove_empty
6061
}

clients/go-ethereum/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,4 @@ ADD genesis.json /genesis.json
6666
# Export the usual networking ports to allow outside access to the node
6767
EXPOSE 8545 8546 8547 8551 30303 30303/udp
6868

69-
# Generate the ethash verification caches
70-
RUN \
71-
/usr/local/bin/geth makecache 1 ~/.ethereum/geth/ethash && \
72-
/usr/local/bin/geth makecache 30001 ~/.ethereum/geth/ethash
73-
7469
ENTRYPOINT ["/geth.sh"]

clients/go-ethereum/geth.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ fi
5858
# It doesn't make sense to dial out, use only a pre-set bootnode.
5959
FLAGS="$FLAGS --bootnodes=$HIVE_BOOTNODE"
6060

61-
if [ "$HIVE_SKIP_POW" != "" ]; then
62-
FLAGS="$FLAGS --fakepow"
63-
fi
64-
6561
# If a specific network ID is requested, use that
6662
if [ "$HIVE_NETWORK_ID" != "" ]; then
6763
FLAGS="$FLAGS --networkid $HIVE_NETWORK_ID"
@@ -131,7 +127,7 @@ if [ "$HIVE_CLIQUE_PRIVATEKEY" != "" ]; then
131127
# Create password file.
132128
echo "Importing clique key..."
133129
echo "secret" > /geth-password-file.txt
134-
$geth --nousb account import --password /geth-password-file.txt <(echo "$HIVE_CLIQUE_PRIVATEKEY")
130+
$geth account import --password /geth-password-file.txt <(echo "$HIVE_CLIQUE_PRIVATEKEY")
135131

136132
# Ensure password file is used when running geth in mining mode.
137133
if [ "$HIVE_MINER" != "" ]; then
@@ -141,7 +137,7 @@ fi
141137

142138
# Configure any mining operation
143139
if [ "$HIVE_MINER" != "" ] && [ "$HIVE_NODETYPE" != "light" ]; then
144-
FLAGS="$FLAGS --mine --miner.threads 1 --miner.etherbase $HIVE_MINER"
140+
FLAGS="$FLAGS --mine --miner.etherbase $HIVE_MINER"
145141
fi
146142
if [ "$HIVE_MINER_EXTRA" != "" ]; then
147143
FLAGS="$FLAGS --miner.extradata $HIVE_MINER_EXTRA"

clients/go-ethereum/mapper.jq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@ def to_bool:
5656
"terminalTotalDifficulty": env.HIVE_TERMINAL_TOTAL_DIFFICULTY|to_int,
5757
"shanghaiTime": env.HIVE_SHANGHAI_TIMESTAMP|to_int,
5858
"cancunTime": env.HIVE_CANCUN_TIMESTAMP|to_int,
59+
"terminalTotalDifficultyPassed": true,
5960
}|remove_empty
6061
}

clients/nethermind/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
ARG user=nethermindeth
2+
ARG repo=hive
13
ARG branch=latest
2-
FROM nethermindeth/hive:$branch
4+
FROM $user/$repo:$branch
35

46
RUN apt-get update && apt-get install -y wget
57
RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /usr/local/bin/jq && \

clients/nethermind/mapper.jq

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def clique_engine:
142142
"eip3860TransitionTimestamp": env.HIVE_SHANGHAI_TIMESTAMP|to_hex,
143143
"eip4895TransitionTimestamp": env.HIVE_SHANGHAI_TIMESTAMP|to_hex,
144144

145+
# Cancun
146+
"eip4844TransitionTimestamp": env.HIVE_CANCUN_TIMESTAMP|to_hex,
147+
145148
# Other chain parameters
146149
"networkID": env.HIVE_NETWORK_ID|to_hex,
147150
"chainID": env.HIVE_CHAIN_ID|to_hex,
@@ -160,6 +163,7 @@ def clique_engine:
160163
"extraData": .extraData,
161164
"gasLimit": .gasLimit,
162165
"baseFeePerGas": .baseFeePerGas,
166+
"excessDataGas": .excessDataGas,
163167
},
164168
"accounts": ((.alloc|with_entries(.key|="0x"+.)) * {
165169
"0x0000000000000000000000000000000000000001": {

clients/nethermind/nethermind.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jq . /chainspec/test.json
6262

6363
# Generate the config file.
6464
mkdir /configs
65+
echo "Supplied genesis state:"
6566
jq -n -f /mkconfig.jq > /configs/test.cfg
6667

6768
echo "test.cfg"

0 commit comments

Comments
 (0)