-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from bnb-chain/merge-v1.0.6
chore: merge with upstream v1.0.6
- Loading branch information
Showing
763 changed files
with
36,048 additions
and
17,300 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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,151 @@ | ||
#!/usr/bin/env bash | ||
set +e # Disable immediate exit on error | ||
|
||
tool_chain=$1 | ||
|
||
# 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-evm-optimism | ||
reth-execution-errors | ||
reth-exex | ||
reth-exex-test-utils | ||
reth-ipc | ||
reth-net-nat | ||
reth-network | ||
reth-node-api | ||
reth-node-builder | ||
reth-node-core | ||
reth-node-ethereum | ||
reth-node-events | ||
reth-node-metrics | ||
reth-node-optimism | ||
reth-optimism-cli | ||
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 | ||
# The following are not supposed to be working | ||
reth # all of the crates below | ||
reth-db # mdbx | ||
reth-libmdbx # mdbx | ||
reth-mdbx-sys # mdbx | ||
reth-nippy-jar # sucds | ||
reth-provider # reth-db, reth-nippy-jar | ||
reth-prune # reth-db | ||
reth-stages-api # reth-provider, reth-prune | ||
reth-static-file # reth-nippy-jar | ||
reth-transaction-pool # c-kzg | ||
reth-trie-db # reth-db | ||
reth-trie-parallel # reth-db | ||
) | ||
|
||
# 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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# 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) | ||
|
||
# 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: | ||
- Re-org to Previously Validated Sidechain Payload (Paris) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=False, Invalid P9 (Paris) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=True, Invalid P9 (Paris) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=False, Invalid P10 (Paris) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=True, Invalid P10 (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) | ||
- Invalid PayloadAttributes, Missing BeaconRoot, Syncing=True (Cancun) (reth) | ||
- Invalid NewPayload, BlobGasUsed, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, Blob Count on BlobGasUsed, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Invalid NewPayload, ExcessBlobGas, Syncing=True, EmptyTxs=False, DynFeeTxs=False (Cancun) (reth) | ||
- Re-org to Previously Validated Sidechain Payload (Cancun) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=False, Invalid P9 (Cancun) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=True, Invalid P9 (Cancun) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=False, Invalid P10 (Cancun) (reth) | ||
- Invalid Missing Ancestor ReOrg, StateRoot, EmptyTxs=True, Invalid P10 (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
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
Oops, something went wrong.