-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v1.1.0' into devel-v1.1.0
- Loading branch information
Showing
1,383 changed files
with
91,289 additions
and
48,403 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: GitHub Discussions | ||
url: https://github.com/foundry-rs/reth/discussions | ||
url: https://github.com/paradigmxyz/reth/discussions | ||
about: Please ask and answer questions here to keep the issue tracker clean. | ||
- name: Security | ||
url: mailto:[email protected] | ||
about: Please report security vulnerabilities here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
#!/usr/bin/env bash | ||
set +e # Disable immediate exit on error | ||
|
||
# Array of crates to compile | ||
crates=($(cargo metadata --format-version=1 --no-deps | jq -r '.packages[].name' | grep '^reth' | sort)) | ||
# Array of crates to exclude | ||
exclude_crates=( | ||
# The following are not working yet, but known to be fixable | ||
reth-exex-types # https://github.com/paradigmxyz/reth/issues/9946 | ||
# The following require investigation if they can be fixed | ||
reth-auto-seal-consensus | ||
reth-basic-payload-builder | ||
reth-beacon-consensus | ||
reth-bench | ||
reth-blockchain-tree | ||
reth-chain-state | ||
reth-cli | ||
reth-cli-commands | ||
reth-cli-runner | ||
reth-consensus-debug-client | ||
reth-db-common | ||
reth-discv4 | ||
reth-discv5 | ||
reth-dns-discovery | ||
reth-downloaders | ||
reth-e2e-test-utils | ||
reth-engine-primitives | ||
reth-engine-service | ||
reth-engine-tree | ||
reth-engine-util | ||
reth-eth-wire | ||
reth-ethereum-cli | ||
reth-ethereum-engine | ||
reth-ethereum-engine-primitives | ||
reth-ethereum-payload-builder | ||
reth-etl | ||
reth-evm-ethereum | ||
reth-execution-errors | ||
reth-exex | ||
reth-exex-test-utils | ||
reth-ipc | ||
reth-net-nat | ||
reth-network | ||
reth-node-api | ||
reth-node-types | ||
reth-node-builder | ||
reth-node-core | ||
reth-node-ethereum | ||
reth-node-events | ||
reth-node-metrics | ||
reth-optimism-cli | ||
reth-optimism-evm | ||
reth-optimism-node | ||
reth-optimism-payload-builder | ||
reth-optimism-rpc | ||
reth-payload-builder | ||
reth-payload-primitives | ||
reth-rpc | ||
reth-rpc-api | ||
reth-rpc-api-testing-util | ||
reth-rpc-builder | ||
reth-rpc-engine-api | ||
reth-rpc-eth-api | ||
reth-rpc-eth-types | ||
reth-rpc-layer | ||
reth-rpc-types | ||
reth-stages | ||
reth-storage-errors | ||
reth-engine-local | ||
# The following are not supposed to be working | ||
reth # all of the crates below | ||
reth-invalid-block-hooks # reth-provider | ||
reth-libmdbx # mdbx | ||
reth-mdbx-sys # mdbx | ||
reth-provider # tokio | ||
reth-prune # tokio | ||
reth-stages-api # reth-provider, reth-prune | ||
reth-static-file # tokio | ||
reth-transaction-pool # c-kzg | ||
reth-trie-parallel # tokio | ||
) | ||
|
||
# Array to hold the results | ||
results=() | ||
# Flag to track if any command fails | ||
any_failed=0 | ||
|
||
# Function to check if a value exists in an array | ||
contains() { | ||
local array="$1[@]" | ||
local seeking=$2 | ||
local in=1 | ||
for element in "${!array}"; do | ||
if [[ "$element" == "$seeking" ]]; then | ||
in=0 | ||
break | ||
fi | ||
done | ||
return $in | ||
} | ||
|
||
for crate in "${crates[@]}"; do | ||
if contains exclude_crates "$crate"; then | ||
results+=("3:⏭️:$crate") | ||
continue | ||
fi | ||
|
||
cmd="cargo +stable build -p $crate --target wasm32-wasip1 --no-default-features" | ||
|
||
if [ -n "$CI" ]; then | ||
echo "::group::$cmd" | ||
else | ||
printf "\n%s:\n %s\n" "$crate" "$cmd" | ||
fi | ||
|
||
set +e # Disable immediate exit on error | ||
# Run the command and capture the return code | ||
$cmd | ||
ret_code=$? | ||
set -e # Re-enable immediate exit on error | ||
|
||
# Store the result in the dictionary | ||
if [ $ret_code -eq 0 ]; then | ||
results+=("1:✅:$crate") | ||
else | ||
results+=("2:❌:$crate") | ||
any_failed=1 | ||
fi | ||
|
||
if [ -n "$CI" ]; then | ||
echo "::endgroup::" | ||
fi | ||
done | ||
|
||
# Sort the results by status and then by crate name | ||
IFS=$'\n' sorted_results=($(sort <<<"${results[*]}")) | ||
unset IFS | ||
|
||
# Print summary | ||
echo -e "\nSummary of build results:" | ||
for result in "${sorted_results[@]}"; do | ||
status="${result#*:}" | ||
status="${status%%:*}" | ||
crate="${result##*:}" | ||
echo "$status $crate" | ||
done | ||
|
||
# Exit with a non-zero status if any command fails | ||
exit $any_failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM ubuntu | ||
|
||
COPY dist/reth /usr/local/bin | ||
|
||
COPY LICENSE-* ./ | ||
|
||
EXPOSE 30303 30303/udp 9001 8545 8546 | ||
ENTRYPOINT ["/usr/local/bin/reth"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
# Create the hive_assets directory | ||
mkdir hive_assets/ | ||
|
||
cd hivetests | ||
go build . | ||
|
||
./hive -client reth # first builds and caches the client | ||
|
||
# Run each hive command in the background for each simulator and wait | ||
echo "Building images" | ||
./hive -client reth --sim "pyspec" -sim.timelimit 1s || true & | ||
./hive -client reth --sim "ethereum/engine" -sim.timelimit 1s || true & | ||
./hive -client reth --sim "devp2p" -sim.timelimit 1s || true & | ||
./hive -client reth --sim "ethereum/rpc-compat" -sim.timelimit 1s || true & | ||
./hive -client reth --sim "smoke/genesis" -sim.timelimit 1s || true & | ||
./hive -client reth --sim "smoke/network" -sim.timelimit 1s || true & | ||
./hive -client reth --sim "ethereum/sync" -sim.timelimit 1s || true & | ||
wait | ||
|
||
# Run docker save in parallel and wait | ||
echo "Saving images" | ||
docker save hive/hiveproxy:latest -o ../hive_assets/hiveproxy.tar & | ||
docker save hive/simulators/devp2p:latest -o ../hive_assets/devp2p.tar & | ||
docker save hive/simulators/ethereum/engine:latest -o ../hive_assets/engine.tar & | ||
docker save hive/simulators/ethereum/rpc-compat:latest -o ../hive_assets/rpc_compat.tar & | ||
docker save hive/simulators/ethereum/pyspec:latest -o ../hive_assets/pyspec.tar & | ||
docker save hive/simulators/smoke/genesis:latest -o ../hive_assets/smoke_genesis.tar & | ||
docker save hive/simulators/smoke/network:latest -o ../hive_assets/smoke_network.tar & | ||
docker save hive/simulators/ethereum/sync:latest -o ../hive_assets/ethereum_sync.tar & | ||
wait | ||
|
||
# Make sure we don't rebuild images on the CI jobs | ||
git apply ../.github/assets/hive/no_sim_build.diff | ||
go build . | ||
mv ./hive ../hive_assets/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# https://github.com/paradigmxyz/reth/issues/7015 | ||
# https://github.com/paradigmxyz/reth/issues/6332 | ||
rpc-compat: | ||
- debug_getRawBlock/get-invalid-number (reth) | ||
- debug_getRawHeader/get-invalid-number (reth) | ||
- debug_getRawReceipts/get-invalid-number (reth) | ||
- debug_getRawTransaction/get-invalid-hash (reth) | ||
|
||
- eth_call/call-callenv (reth) | ||
- eth_feeHistory/fee-history (reth) | ||
- eth_getStorageAt/get-storage-invalid-key-too-large (reth) | ||
- eth_getStorageAt/get-storage-invalid-key (reth) | ||
- eth_getTransactionReceipt/get-access-list (reth) | ||
- eth_getTransactionReceipt/get-blob-tx (reth) | ||
- eth_getTransactionReceipt/get-dynamic-fee (reth) | ||
- eth_getBlockByHash/get-block-by-hash (reth) | ||
- eth_getBlockByNumber/get-block-n (reth) | ||
- eth_getBlockByNumber/get-finalized (reth) | ||
- eth_getBlockByNumber/get-genesis (reth) | ||
- eth_getBlockByNumber/get-latest (reth) | ||
- eth_getBlockByNumber/get-safe (reth) | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8732 | ||
engine-withdrawals: | ||
- Withdrawals Fork On Genesis (Paris) (reth) | ||
- Withdrawals Fork on Block 1 (Paris) (reth) | ||
- Withdrawals Fork on Block 2 (Paris) (reth) | ||
- Withdrawals Fork on Block 3 (Paris) (reth) | ||
- Withdraw to a single account (Paris) (reth) | ||
- Withdraw to two accounts (Paris) (reth) | ||
- Withdraw many accounts (Paris) (reth) | ||
- Withdraw zero amount (Paris) (reth) | ||
- Empty Withdrawals (Paris) (reth) | ||
- Corrupted Block Hash Payload (INVALID) (Paris) (reth) | ||
- Withdrawals Fork on Block 1 - 8 Block Re-Org NewPayload (Paris) (reth) | ||
- Withdrawals Fork on Block 1 - 8 Block Re-Org, Sync (Paris) (reth) | ||
- Withdrawals Fork on Block 8 - 10 Block Re-Org NewPayload (Paris) (reth) | ||
- Withdrawals Fork on Block 8 - 10 Block Re-Org Sync (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 7 - 10 Block Re-Org (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 7 - 10 Block Re-Org Sync (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 9 - 10 Block Re-Org (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 9 - 10 Block Re-Org Sync (Paris) (reth) | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8305 | ||
# https://github.com/paradigmxyz/reth/issues/6217 | ||
engine-api: | ||
- Inconsistent Head in ForkchoiceState (Paris) (reth) | ||
- Invalid NewPayload, StateRoot, Syncing=True, EmptyTxs=True, DynFeeTxs=False (Paris) (reth) | ||
- Invalid NewPayload, StateRoot, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Paris) (reth) | ||
- Invalid NewPayload, PrevRandao, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Paris) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=True, CanonicalReOrg=False, Invalid P9 (Paris) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=False, CanonicalReOrg=False, Invalid P9 (Paris) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=True, CanonicalReOrg=True, Invalid P9 (Paris) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=False, CanonicalReOrg=True, Invalid P9 (Paris) (reth) | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8305 | ||
# https://github.com/paradigmxyz/reth/issues/6217 | ||
# https://github.com/paradigmxyz/reth/issues/8306 | ||
# https://github.com/paradigmxyz/reth/issues/7144 | ||
engine-cancun: | ||
- Blob Transaction Ordering, Multiple Clients (Cancun) (reth) | ||
- Inconsistent Head in ForkchoiceState (Cancun) (reth) | ||
- Invalid NewPayload, StateRoot, Syncing=True, EmptyTxs=True, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, StateRoot, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, PrevRandao, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=True, CanonicalReOrg=False, Invalid P9 (Cancun) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=False, CanonicalReOrg=False, Invalid P9 (Cancun) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=True, CanonicalReOrg=True, Invalid P9 (Cancun) (reth) | ||
- Invalid Missing Ancestor Syncing ReOrg, StateRoot, EmptyTxs=False, CanonicalReOrg=True, Invalid P9 (Cancun) (reth) | ||
- Invalid PayloadAttributes, Missing BeaconRoot, Syncing=True (Cancun) (reth) | ||
- Invalid NewPayload, ParentBeaconBlockRoot, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, ExcessBlobGas, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8579 | ||
sync: | ||
- sync reth -> reth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# https://github.com/paradigmxyz/reth/issues/7015 | ||
# https://github.com/paradigmxyz/reth/issues/6332 | ||
rpc-compat: | ||
- debug_getRawBlock/get-invalid-number (reth) | ||
- debug_getRawHeader/get-invalid-number (reth) | ||
- debug_getRawReceipts/get-invalid-number (reth) | ||
- debug_getRawTransaction/get-invalid-hash (reth) | ||
|
||
- eth_call/call-callenv (reth) | ||
- eth_feeHistory/fee-history (reth) | ||
- eth_getStorageAt/get-storage-invalid-key-too-large (reth) | ||
- eth_getStorageAt/get-storage-invalid-key (reth) | ||
- eth_getTransactionReceipt/get-access-list (reth) | ||
- eth_getTransactionReceipt/get-blob-tx (reth) | ||
- eth_getTransactionReceipt/get-dynamic-fee (reth) | ||
- eth_getBlockByHash/get-block-by-hash (reth) | ||
- eth_getBlockByNumber/get-block-n (reth) | ||
- eth_getBlockByNumber/get-finalized (reth) | ||
- eth_getBlockByNumber/get-genesis (reth) | ||
- eth_getBlockByNumber/get-latest (reth) | ||
- eth_getBlockByNumber/get-safe (reth) | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8732 | ||
engine-withdrawals: | ||
- Withdrawals Fork On Genesis (Paris) (reth) | ||
- Withdrawals Fork on Block 1 (Paris) (reth) | ||
- Withdrawals Fork on Block 2 (Paris) (reth) | ||
- Withdrawals Fork on Block 3 (Paris) (reth) | ||
- Withdraw to a single account (Paris) (reth) | ||
- Withdraw to two accounts (Paris) (reth) | ||
- Withdraw many accounts (Paris) (reth) | ||
- Withdraw zero amount (Paris) (reth) | ||
- Empty Withdrawals (Paris) (reth) | ||
- Corrupted Block Hash Payload (INVALID) (Paris) (reth) | ||
- Withdrawals Fork on Block 1 - 8 Block Re-Org NewPayload (Paris) (reth) | ||
- Withdrawals Fork on Block 1 - 8 Block Re-Org, Sync (Paris) (reth) | ||
- Withdrawals Fork on Block 8 - 10 Block Re-Org NewPayload (Paris) (reth) | ||
- Withdrawals Fork on Block 8 - 10 Block Re-Org Sync (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 7 - 10 Block Re-Org (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 7 - 10 Block Re-Org Sync (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 9 - 10 Block Re-Org (Paris) (reth) | ||
- Withdrawals Fork on Canonical Block 8 / Side Block 9 - 10 Block Re-Org Sync (Paris) (reth) | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8305 | ||
# https://github.com/paradigmxyz/reth/issues/6217 | ||
engine-api: [] | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8305 | ||
# https://github.com/paradigmxyz/reth/issues/6217 | ||
# https://github.com/paradigmxyz/reth/issues/8306 | ||
# https://github.com/paradigmxyz/reth/issues/7144 | ||
engine-cancun: | ||
- Blob Transaction Ordering, Multiple Clients (Cancun) (reth) | ||
- Invalid PayloadAttributes, Missing BeaconRoot, Syncing=True (Cancun) (reth) | ||
- Invalid NewPayload, ExcessBlobGas, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, VersionedHashes, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, VersionedHashes Version, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, Incomplete VersionedHashes, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, Extra VersionedHashes, Syncing=False, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
|
||
# https://github.com/paradigmxyz/reth/issues/8579 | ||
sync: | ||
- sync reth -> reth |
Oops, something went wrong.