Skip to content

Commit

Permalink
integration: debug_traceBlockByNumber with tags (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixtysixter authored Dec 30, 2024
1 parent fd96753 commit 2343604
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 1 deletion.
Binary file not shown.
26 changes: 26 additions & 0 deletions integration/mainnet/debug_traceBlockByNumber/test_23.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"earliest",
{
"disableMemory": false,
"disableStack": false,
"disableStorage": false
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": []
},
"test": {
"description": "trace the earliest block",
"reference": ""
}
}
]
26 changes: 26 additions & 0 deletions integration/mainnet/debug_traceBlockByNumber/test_24.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"latest",
{
"disableMemory": true,
"disableStack": true,
"disableStorage": true
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": null
},
"test": {
"description": "trace the latest block",
"reference": ""
}
}
]
26 changes: 26 additions & 0 deletions integration/mainnet/debug_traceBlockByNumber/test_25.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"pending",
{
"disableMemory": true,
"disableStack": true,
"disableStorage": true
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": null
},
"test": {
"description": "trace the pending block",
"reference": ""
}
}
]
26 changes: 26 additions & 0 deletions integration/mainnet/debug_traceBlockByNumber/test_26.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"finalized",
{
"disableMemory": true,
"disableStack": true,
"disableStorage": true
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": null
},
"test": {
"description": "trace the finalized block",
"reference": ""
}
}
]
26 changes: 26 additions & 0 deletions integration/mainnet/debug_traceBlockByNumber/test_27.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"safe",
{
"disableMemory": true,
"disableStack": true,
"disableStorage": true
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": null
},
"test": {
"description": "trace the safe block",
"reference": ""
}
}
]
26 changes: 26 additions & 0 deletions integration/mainnet/debug_traceBlockByNumber/test_28.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"latestExecuted",
{
"disableMemory": true,
"disableStack": true,
"disableStorage": true
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": null
},
"test": {
"description": "trace the latestExecuted block",
"reference": ""
}
}
]
Binary file not shown.
10 changes: 9 additions & 1 deletion integration/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
tests_not_compared = [
"mainnet/eth_syncing/test_01.json", # different stages

"mainnet/debug_traceBlockByNumber/test_24", # latest block, diff on transaction gas and very big
"mainnet/debug_traceBlockByNumber/test_25", # pending block, diff on transaction gas and very big
"mainnet/debug_traceBlockByNumber/test_26", # finalized block, diff on transaction gas and very big
"mainnet/debug_traceBlockByNumber/test_27", # safe block, diff on transaction gas and very big
"mainnet/debug_traceBlockByNumber/test_28", # latestExecuted block, diff on transaction gas and very big

"mainnet/debug_traceCall/test_02", # must be complete implementaion on latest

"mainnet/debug_traceBlockByHash/test_05", # diff on 1 gas
"mainnet/debug_traceBlockByHash/test_08", # diff on 3 gasCost
"mainnet/debug_traceBlockByHash/test_09", # diff on 60 gasCost, 8473 gas, 16 stack
Expand All @@ -44,7 +52,7 @@
"mainnet/debug_traceBlockByNumber/test_10", # diff on 42 gasCost, 12358 gas, 8 stack
"mainnet/debug_traceBlockByNumber/test_11", # diff on 1 gas and 1 gasCost
"mainnet/debug_traceBlockByNumber/test_12", # diff on 1 gas
"mainnet/debug_traceBlockByNumber/test_21", # diff on 42 gasCost, 12358 gas, 8 stack
"mainnet/debug_traceBlockByNumber/test_29", # diff on 42 gasCost, 12358 gas, 8 stack

"mainnet/debug_traceTransaction/test_25.json", # diff on error field
"mainnet/debug_traceTransaction/test_36.json", # diff on error field
Expand Down

0 comments on commit 2343604

Please sign in to comment.