Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sanity check for eip 1559 #28

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/post-merge-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ jobs:
# Test vectors against Reth
- name: Apply vectors to Reth
run: bash ./scripts/apply_test_vectors_reth.sh
# Manual sanity checks
- name: Run EIP-1559 sanity checks
run: bash ./scripts/test_eip1559.sh


1 change: 1 addition & 0 deletions scripts/apply_test_vectors_reth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ BG_PID=$!
# Set the trap to call cleanup if an error occurs
cleanup() {
echo "Stopping node process (PID: $BG_PID)..."
ps aux | grep "reth node" | grep -v grep | awk '{print $2}' | xargs kill
kill $BG_PID 2>/dev/null || true
}
trap cleanup EXIT
Expand Down
6 changes: 3 additions & 3 deletions scripts/blocks/block_1.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"baseFeePerGas": "0x342770c0",
"blockHash": "0xc0f683b61355455d49af3dbb11fe1f65e9ae8670890d6fb1aadcbf5f8acc960b",
"blockHash": "0x9636978fddf349fc5e92e85b2080d99b5c3e44c745359a77e603e7f1a76f440c",
"blockNumber": "0x1",
"extraData": "0x4e65746865726d696e64",
"feeRecipient": "0x0000000000000000000000000000000000000000",
"gasLimit": "0x989680",
"gasUsed": "0x0",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0xa7931c99fd2b7b5e323a2fda8a2dd607cea04f03835c3f29bfe7c057c8b5672e",
"parentHash": "0x574c165efc3205be13affbd3bc165df6a6a023e21d142dd4f4c682d2aa3a054e",
"prevRandao": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0xa59f6ea19d9ee6d7e79bcb286e6d8838b47b48351b37960e24c0a72d41fa1629",
"stateRoot": "0xe65e8c7050e23e1f25c7f56416f899b1ce15ec130ee0460b12529b92b4a8ba81",
"timestamp": "0x6553f101",
"transactions": []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No block have transactions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the blocks having txs are generated in the script themselves, closing this PR due to #30 (comment)

}
6 changes: 3 additions & 3 deletions scripts/blocks/block_2.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"baseFeePerGas": "0x2da282a8",
"blockHash": "0xc314b27368528ec560d035ef9f5dc46e2aea6d21b618eeb37e91723fefdfb2d9",
"blockHash": "0xb413c62db3a7b82636aa984736933c1956d930d085d04a1b184298c76e56c786",
"blockNumber": "0x2",
"extraData": "0x4e65746865726d696e64",
"feeRecipient": "0x0000000000000000000000000000000000000000",
"gasLimit": "0x989680",
"gasUsed": "0x0",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0xc0f683b61355455d49af3dbb11fe1f65e9ae8670890d6fb1aadcbf5f8acc960b",
"parentHash": "0x9636978fddf349fc5e92e85b2080d99b5c3e44c745359a77e603e7f1a76f440c",
"prevRandao": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0xa59f6ea19d9ee6d7e79bcb286e6d8838b47b48351b37960e24c0a72d41fa1629",
"stateRoot": "0xe65e8c7050e23e1f25c7f56416f899b1ce15ec130ee0460b12529b92b4a8ba81",
"timestamp": "0x6553f102",
"transactions": []
}
6 changes: 3 additions & 3 deletions scripts/blocks/block_3.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"baseFeePerGas": "0x27ee3253",
"blockHash": "0xd51a4d79676ddad8e938c38ec1344a77feefa369475acb358563f37a74a4d9d6",
"blockHash": "0xe49ebede05072552a7b99bb2e75db0e69d88640ec1dbdcf08cb3f579fd9a504d",
"blockNumber": "0x3",
"extraData": "0x4e65746865726d696e64",
"feeRecipient": "0x0000000000000000000000000000000000000000",
"gasLimit": "0x989680",
"gasUsed": "0x0",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0xc314b27368528ec560d035ef9f5dc46e2aea6d21b618eeb37e91723fefdfb2d9",
"parentHash": "0xb413c62db3a7b82636aa984736933c1956d930d085d04a1b184298c76e56c786",
"prevRandao": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0xa59f6ea19d9ee6d7e79bcb286e6d8838b47b48351b37960e24c0a72d41fa1629",
"stateRoot": "0xe65e8c7050e23e1f25c7f56416f899b1ce15ec130ee0460b12529b92b4a8ba81",
"timestamp": "0x6553f103",
"transactions": []
}
6 changes: 3 additions & 3 deletions scripts/blocks/block_4.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"baseFeePerGas": "0x22f06c09",
"blockHash": "0x011405450b1431877c952c73d0ea0c964c67d006b3134aea5be7a59823e40e39",
"blockHash": "0xfc5dc793bc70c93c53fe3c37578b197b07a0173a76d5ac553f590b8da404fa81",
"blockNumber": "0x4",
"extraData": "0x4e65746865726d696e64",
"feeRecipient": "0x0000000000000000000000000000000000000000",
"gasLimit": "0x989680",
"gasUsed": "0x0",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0xd51a4d79676ddad8e938c38ec1344a77feefa369475acb358563f37a74a4d9d6",
"parentHash": "0xe49ebede05072552a7b99bb2e75db0e69d88640ec1dbdcf08cb3f579fd9a504d",
"prevRandao": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0xa59f6ea19d9ee6d7e79bcb286e6d8838b47b48351b37960e24c0a72d41fa1629",
"stateRoot": "0xe65e8c7050e23e1f25c7f56416f899b1ce15ec130ee0460b12529b92b4a8ba81",
"timestamp": "0x6553f104",
"transactions": []
}
6 changes: 3 additions & 3 deletions scripts/blocks/block_5.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"baseFeePerGas": "0x1e925e88",
"blockHash": "0x9a86f6d4d524388c300b8a09a145d0406fcf13d343ef8574c46fc0ffad9a45a0",
"blockHash": "0x656513d04face451d8c08cdfcc98f2270193f13a665b1c216c5a9c21fbcdf373",
"blockNumber": "0x5",
"extraData": "0x4e65746865726d696e64",
"feeRecipient": "0x0000000000000000000000000000000000000000",
"gasLimit": "0x989680",
"gasUsed": "0x0",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x011405450b1431877c952c73d0ea0c964c67d006b3134aea5be7a59823e40e39",
"parentHash": "0xfc5dc793bc70c93c53fe3c37578b197b07a0173a76d5ac553f590b8da404fa81",
"prevRandao": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0xa59f6ea19d9ee6d7e79bcb286e6d8838b47b48351b37960e24c0a72d41fa1629",
"stateRoot": "0xe65e8c7050e23e1f25c7f56416f899b1ce15ec130ee0460b12529b92b4a8ba81",
"timestamp": "0x6553f105",
"transactions": []
}
5 changes: 5 additions & 0 deletions scripts/chiado_genesis_alloc.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@
"nonce": "0",
"balance": "0",
"code": ""
},
"0x38e3E7Aca6762E296F659Fcb4E460a3A621dcD3D": {
"nonce": "0",
"balance": "1000000000000000000000000000000",
"code": ""
}
}
}
1 change: 1 addition & 0 deletions scripts/generate_test_vectors_reth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BG_PID=$!
# Set the trap to call cleanup if an error occurs
cleanup() {
echo "Stopping node process (PID: $BG_PID)..."
ps aux | grep "reth node" | grep -v grep | awk '{print $2}' | xargs kill
kill $BG_PID 2>/dev/null || true
}
trap cleanup EXIT
Expand Down
4 changes: 4 additions & 0 deletions scripts/networkdata/chainspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@
"0x0000000000000000000000000000000000000000": {
"nonce": "0",
"balance": "0"
},
"0x38e3E7Aca6762E296F659Fcb4E460a3A621dcD3D": {
"nonce": "0",
"balance": "1000000000000000000000000000000"
}
}
}
2 changes: 2 additions & 0 deletions scripts/run_reth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ rm -rf $DATA_DIR
# Script's directory
DIR="$(dirname "$0")"

echo "Using chain file: $CHAIN_FILE"

# $PWD/target/release/reth \
cargo run -- \
node \
Expand Down
Loading
Loading