Skip to content

Commit 6c809a3

Browse files
authored
Merge pull request #67 from bitfinity-network/upgrade_to_v1.3.4
Upgrade to v1.3.8 - New Engine
2 parents 18dfd98 + 812e9a2 commit 6c809a3

File tree

1,296 files changed

+62520
-51431
lines changed

Some content is hidden

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

1,296 files changed

+62520
-51431
lines changed

.config/zepter.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ workflows:
1212
# Check that `A` activates the features of `B`.
1313
"propagate-feature",
1414
# These are the features to check:
15-
"--features=std,optimism,dev,asm-keccak,jemalloc,jemalloc-prof,tracy-allocator,serde-bincode-compat,serde,test-utils,arbitrary,bench",
16-
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually.
15+
"--features=std,op,dev,asm-keccak,jemalloc,jemalloc-prof,tracy-allocator,serde-bincode-compat,serde,test-utils,arbitrary,bench,alloy-compat",
16+
# Do not try to add a new section to `[features]` of `A` only because `B` exposes that feature. There are edge-cases where this is still needed, but we can add them manually.
1717
"--left-side-feature-missing=ignore",
1818
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.
1919

2020
"--left-side-outside-workspace=ignore",
21-
# Auxilary flags:
21+
# Auxiliary flags:
2222
"--offline",
2323
"--locked",
2424
"--show-path",

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ crates/engine @rkrasiuk @mattsse @Rjected
1111
crates/e2e-test-utils/ @mattsse @Rjected
1212
crates/engine/ @rkrasiuk @mattsse @Rjected @fgimenez
1313
crates/errors/ @mattsse
14+
crates/era/ @mattsse
1415
crates/ethereum/ @mattsse @Rjected
1516
crates/ethereum-forks/ @mattsse @Rjected
1617
crates/etl/ @joshieDo @shekhirin
@@ -44,5 +45,6 @@ crates/tokio-util/ @fgimenez
4445
crates/tracing/ @onbjerg
4546
crates/transaction-pool/ @mattsse
4647
crates/trie/ @rkrasiuk @Rjected @shekhirin
48+
crates/ress @rkrasiuk
4749
etc/ @Rjected @onbjerg @shekhirin
4850
.github/ @onbjerg @gakonst @DaniPopes

.github/assets/check_rv32imac.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,28 @@ crates_to_check=(
88
reth-network-peers
99
reth-trie-common
1010
reth-chainspec
11+
reth-consensus
12+
reth-consensus-common
13+
reth-prune-types
14+
reth-static-file-types
15+
reth-storage-errors
16+
reth-execution-errors
17+
reth-execution-types
18+
reth-db-models
19+
reth-evm
20+
reth-storage-api
1121

1222
## ethereum
23+
reth-evm-ethereum
1324
reth-ethereum-forks
1425
reth-ethereum-primitives
1526

1627
## optimism
1728
reth-optimism-chainspec
1829
reth-optimism-forks
30+
reth-optimism-consensus
31+
reth-optimism-primitives
32+
reth-optimism-evm
1933
)
2034

2135
# Array to hold the results

.github/assets/check_wasm.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ crates=($(cargo metadata --format-version=1 --no-deps | jq -r '.packages[].name'
1010
exclude_crates=(
1111
# The following require investigation if they can be fixed
1212
reth-basic-payload-builder
13-
reth-beacon-consensus
1413
reth-bench
15-
reth-blockchain-tree
1614
reth-cli
1715
reth-cli-commands
1816
reth-cli-runner
@@ -45,7 +43,8 @@ exclude_crates=(
4543
reth-optimism-node
4644
reth-optimism-payload-builder
4745
reth-optimism-rpc
48-
reth-optimism-primitives
46+
reth-optimism-storage
47+
reth-optimism-chain-registry
4948
reth-rpc
5049
reth-rpc-api
5150
reth-rpc-api-testing-util
@@ -56,18 +55,23 @@ exclude_crates=(
5655
reth-rpc-layer
5756
reth-stages
5857
reth-engine-local
58+
reth-ress-protocol
59+
reth-ress-provider
5960
# The following are not supposed to be working
6061
reth # all of the crates below
6162
reth-invalid-block-hooks # reth-provider
6263
reth-libmdbx # mdbx
6364
reth-mdbx-sys # mdbx
65+
reth-payload-builder # reth-metrics
6466
reth-provider # tokio
6567
reth-prune # tokio
6668
reth-stages-api # reth-provider, reth-prune
6769
reth-static-file # tokio
6870
reth-transaction-pool # c-kzg
71+
reth-payload-util # reth-transaction-pool
6972
reth-trie-parallel # tokio
7073
reth-testing-utils
74+
reth-optimism-txpool # reth-transaction-pool
7175
)
7276

7377
# Array to hold the results

.github/assets/hive/Dockerfile

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,60 @@
1-
FROM ubuntu
1+
# syntax=docker.io/docker/dockerfile:1.7-labs
22

3-
COPY dist/reth /usr/local/bin
3+
#
4+
# We'll use cargo-chef to speed up the build
5+
#
6+
FROM lukemathwalker/cargo-chef:latest-rust-1 AS chef
7+
WORKDIR /app
48

9+
# Install system dependencies
10+
RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config
11+
12+
#
13+
# We prepare the build plan
14+
#
15+
FROM chef AS planner
16+
17+
ARG CARGO_BIN
18+
19+
COPY --exclude=.git --exclude=dist . .
20+
RUN cargo chef prepare --recipe-path recipe.json --bin ${CARGO_BIN}
21+
22+
#
23+
# And build the app
24+
#
25+
FROM chef AS builder
26+
WORKDIR /app
27+
28+
ARG CARGO_BIN
29+
ARG BUILD_PROFILE=hivetests
30+
ARG FEATURES=""
31+
ARG MANIFEST_PATH=""
32+
33+
COPY --from=planner /app/recipe.json recipe.json
34+
35+
RUN cargo chef cook \
36+
--profile $BUILD_PROFILE \
37+
--bin $CARGO_BIN \
38+
${FEATURES:+--features "$FEATURES"} \
39+
${MANIFEST_PATH:+--manifest-path $MANIFEST_PATH} \
40+
--recipe-path recipe.json
41+
42+
COPY --exclude=.git --exclude=dist . .
43+
RUN cargo build \
44+
--profile $BUILD_PROFILE \
45+
--bin $CARGO_BIN \
46+
${FEATURES:+--features "$FEATURES"} \
47+
${MANIFEST_PATH:+--manifest-path $MANIFEST_PATH} \
48+
--locked
49+
50+
#
51+
# The runtime will then just use the build artifact without building anything
52+
#
53+
FROM ubuntu AS runtime
54+
55+
ARG CARGO_BIN
56+
57+
COPY --from=builder /app/target/hivetests/$CARGO_BIN /usr/local/bin/reth
558
COPY LICENSE-* ./
659

760
EXPOSE 30303 30303/udp 9001 8545 8546

.github/assets/hive/build_simulators.sh

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ go build .
1111

1212
# Run each hive command in the background for each simulator and wait
1313
echo "Building images"
14-
./hive -client reth --sim "pyspec" -sim.timelimit 1s || true &
14+
./hive -client reth --sim "ethereum/eest" --sim.buildarg fixtures=https://github.com/ethereum/execution-spec-tests/releases/download/v4.1.0/fixtures_develop.tar.gz --sim.buildarg branch=v4.1.0 -sim.timelimit 1s || true &
1515
./hive -client reth --sim "ethereum/engine" -sim.timelimit 1s || true &
1616
./hive -client reth --sim "devp2p" -sim.timelimit 1s || true &
1717
./hive -client reth --sim "ethereum/rpc-compat" -sim.timelimit 1s || true &
@@ -20,17 +20,21 @@ echo "Building images"
2020
./hive -client reth --sim "ethereum/sync" -sim.timelimit 1s || true &
2121
wait
2222

23-
# Run docker save in parallel and wait
23+
# Run docker save in parallel, wait and exit on error
2424
echo "Saving images"
25-
docker save hive/hiveproxy:latest -o ../hive_assets/hiveproxy.tar &
26-
docker save hive/simulators/devp2p:latest -o ../hive_assets/devp2p.tar &
27-
docker save hive/simulators/ethereum/engine:latest -o ../hive_assets/engine.tar &
28-
docker save hive/simulators/ethereum/rpc-compat:latest -o ../hive_assets/rpc_compat.tar &
29-
docker save hive/simulators/ethereum/pyspec:latest -o ../hive_assets/pyspec.tar &
30-
docker save hive/simulators/smoke/genesis:latest -o ../hive_assets/smoke_genesis.tar &
31-
docker save hive/simulators/smoke/network:latest -o ../hive_assets/smoke_network.tar &
32-
docker save hive/simulators/ethereum/sync:latest -o ../hive_assets/ethereum_sync.tar &
33-
wait
25+
saving_pids=( )
26+
docker save hive/hiveproxy:latest -o ../hive_assets/hiveproxy.tar & saving_pids+=( $! )
27+
docker save hive/simulators/devp2p:latest -o ../hive_assets/devp2p.tar & saving_pids+=( $! )
28+
docker save hive/simulators/ethereum/engine:latest -o ../hive_assets/engine.tar & saving_pids+=( $! )
29+
docker save hive/simulators/ethereum/rpc-compat:latest -o ../hive_assets/rpc_compat.tar & saving_pids+=( $! )
30+
docker save hive/simulators/ethereum/eest/consume-engine:latest -o ../hive_assets/eest_engine.tar & saving_pids+=( $! )
31+
docker save hive/simulators/ethereum/eest/consume-rlp:latest -o ../hive_assets/eest_rlp.tar & saving_pids+=( $! )
32+
docker save hive/simulators/smoke/genesis:latest -o ../hive_assets/smoke_genesis.tar & saving_pids+=( $! )
33+
docker save hive/simulators/smoke/network:latest -o ../hive_assets/smoke_network.tar & saving_pids+=( $! )
34+
docker save hive/simulators/ethereum/sync:latest -o ../hive_assets/ethereum_sync.tar & saving_pids+=( $! )
35+
for pid in "${saving_pids[@]}"; do
36+
wait "$pid" || exit
37+
done
3438

3539
# Make sure we don't rebuild images on the CI jobs
3640
git apply ../.github/assets/hive/no_sim_build.diff

.github/assets/hive/expected_failures.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
# https://github.com/paradigmxyz/reth/issues/7015
2-
# https://github.com/paradigmxyz/reth/issues/6332
1+
# tracked by https://github.com/paradigmxyz/reth/issues/13879
32
rpc-compat:
43
- debug_getRawBlock/get-invalid-number (reth)
54
- debug_getRawHeader/get-invalid-number (reth)
65
- debug_getRawReceipts/get-invalid-number (reth)
6+
- debug_getRawReceipts/get-block-n (reth)
77
- debug_getRawTransaction/get-invalid-hash (reth)
88

99
- eth_call/call-callenv (reth)
10-
- eth_feeHistory/fee-history (reth)
1110
- eth_getStorageAt/get-storage-invalid-key-too-large (reth)
1211
- eth_getStorageAt/get-storage-invalid-key (reth)
1312
- eth_getTransactionReceipt/get-access-list (reth)
1413
- eth_getTransactionReceipt/get-blob-tx (reth)
1514
- eth_getTransactionReceipt/get-dynamic-fee (reth)
15+
- eth_getTransactionReceipt/get-legacy-contract (reth)
16+
- eth_getTransactionReceipt/get-legacy-input (reth)
17+
- eth_getTransactionReceipt/get-legacy-receipt (reth)
1618

17-
# https://github.com/paradigmxyz/reth/issues/8732
19+
# no fix due to https://github.com/paradigmxyz/reth/issues/8732
1820
engine-withdrawals:
1921
- Withdrawals Fork On Genesis (Paris) (reth)
2022
- Withdrawals Fork on Block 1 (Paris) (reth)
@@ -37,17 +39,15 @@ engine-withdrawals:
3739

3840
engine-api: []
3941

40-
# https://github.com/paradigmxyz/reth/issues/8305
41-
# https://github.com/paradigmxyz/reth/issues/6217
42-
# https://github.com/paradigmxyz/reth/issues/8306
43-
# https://github.com/paradigmxyz/reth/issues/7144
42+
# no fix due to https://github.com/paradigmxyz/reth/issues/8732
4443
engine-cancun:
45-
- Blob Transaction Ordering, Multiple Clients (Cancun) (reth)
4644
- Invalid PayloadAttributes, Missing BeaconRoot, Syncing=True (Cancun) (reth)
4745
- Invalid NewPayload, ExcessBlobGas, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth)
48-
- Invalid NewPayload, VersionedHashes, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth)
49-
- Invalid NewPayload, VersionedHashes Version, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth)
50-
- Invalid NewPayload, Incomplete VersionedHashes, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth)
51-
- Invalid NewPayload, Extra VersionedHashes, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth)
5246

5347
sync: []
48+
49+
# no fix: it’s too expensive to check whether the storage is empty on each creation
50+
eest/consume-engine:
51+
- tests/prague/eip7702_set_code_tx/test_set_code_txs.py::test_set_code_to_non_empty_storage[fork_Prague-blockchain_test_engine-zero_nonce]-reth
52+
eest/consume-rlp:
53+
- tests/prague/eip7702_set_code_tx/test_set_code_txs.py::test_set_code_to_non_empty_storage[fork_Prague-blockchain_test-zero_nonce]-reth

.github/assets/hive/load_images.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ IMAGES=(
1111
"/tmp/smoke_genesis.tar"
1212
"/tmp/smoke_network.tar"
1313
"/tmp/ethereum_sync.tar"
14+
"/tmp/eest_engine.tar"
15+
"/tmp/eest_rlp.tar"
1416
"/tmp/reth_image.tar"
1517
)
1618

@@ -22,4 +24,4 @@ done
2224

2325
wait
2426

25-
docker image ls -a
27+
docker image ls -a

.github/assets/hive/run_simulator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sim="${1}"
77
limit="${2}"
88

99
run_hive() {
10-
hive --sim "${sim}" --sim.limit "${limit}" --sim.parallelism 4 --client reth 2>&1 | tee /tmp/log || true
10+
hive --sim "${sim}" --sim.limit "${limit}" --sim.parallelism 8 --client reth 2>&1 | tee /tmp/log || true
1111
}
1212

1313
check_log() {
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
ethereum_package:
22
participants:
33
- el_type: reth
4-
cl_type: lighthouse
4+
el_extra_params:
5+
- "--rpc.eth-proof-window=100"
6+
cl_type: teku
57
optimism_package:
68
chains:
79
- participants:
@@ -10,6 +12,3 @@ optimism_package:
1012
- el_type: op-reth
1113
el_image: "ghcr.io/paradigmxyz/op-reth:kurtosis-ci"
1214
cl_type: op-node
13-
batcher_params:
14-
extra_params:
15-
- "--throttle-interval=0"

0 commit comments

Comments
 (0)