Skip to content

Commit 4805dab

Browse files
committed
tools: point go-ethereum replace to MysticRyuujin fork fix branch
Update the replace directive to use the fix-legacy-struct-log-json branch commit (c787778ed44a) from the MysticRyuujin fork, which fixes legacy structLog JSON encoding in the struct logger tracer.
1 parent 120cd65 commit 4805dab

13 files changed

Lines changed: 132 additions & 5 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// requests a trace with a non-hex block number; the client must return an error
2+
>> {"jsonrpc":"2.0","id":1,"method":"debug_traceBlockByNumber","params":["3"]}
3+
<< {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 0: hex string without 0x prefix"}}

tests/debug_traceBlockByNumber/trace-block-memory-encoding.io

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.

tests/debug_traceBlockByNumber/trace-block-return-data-behavior.io

Lines changed: 6 additions & 0 deletions
Large diffs are not rendered by default.

tests/debug_traceBlockByNumber/trace-block-storage-encoding.io

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.

tests/debug_traceBlockByNumber/trace-block-storage-snapshot-timing.io

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.

tests/debug_traceBlockByNumber/trace-block-with-transactions.io

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// requests a trace of the genesis block; must return an error since there is no parent state to replay from
2+
>> {"jsonrpc":"2.0","id":1,"method":"debug_traceBlockByNumber","params":["0x0"]}
3+
<< {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"genesis is not traceable"}}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// traces a contract call transaction; validates spec compliance of structLogs including stack encoding, error field behavior, and optional storage encoding
2+
// speconly: client response is only checked for schema validity.
3+
>> {"jsonrpc":"2.0","id":1,"method":"debug_traceTransaction","params":["0xc1d605c6612a5fe84dc95810030bfe5b1d327652b381bc695e28f50d13b2b09e"]}
4+
<< {"jsonrpc":"2.0","id":1,"result":{"gas":66259,"failed":false,"returnValue":"0x60004381526020014681526020014181526020014881526020014481526020013281526020013481526020016000f3","structLogs":[{"pc":0,"op":"PUSH1","gas":23644,"gasCost":3,"depth":1,"stack":[]},{"pc":2,"op":"CODESIZE","gas":23641,"gasCost":2,"depth":1,"stack":["0xd"]},{"pc":3,"op":"SUB","gas":23639,"gasCost":3,"depth":1,"stack":["0xd","0x3c"]},{"pc":4,"op":"DUP1","gas":23636,"gasCost":3,"depth":1,"stack":["0x2f"]},{"pc":5,"op":"PUSH1","gas":23633,"gasCost":3,"depth":1,"stack":["0x2f","0x2f"]},{"pc":7,"op":"PUSH1","gas":23630,"gasCost":3,"depth":1,"stack":["0x2f","0x2f","0xd"]},{"pc":9,"op":"CODECOPY","gas":23627,"gasCost":15,"depth":1,"stack":["0x2f","0x2f","0xd","0x0"]},{"pc":10,"op":"PUSH1","gas":23612,"gasCost":3,"depth":1,"stack":["0x2f"]},{"pc":12,"op":"RETURN","gas":23609,"gasCost":0,"depth":1,"stack":["0x2f","0x0"]}]}}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// traces a legacy EOA-to-EOA value transfer; structLogs must be empty since no EVM code runs
2+
// speconly: client response is only checked for schema validity.
3+
>> {"jsonrpc":"2.0","id":1,"method":"debug_traceTransaction","params":["0x0d6999c0e9e4bec347945593e97bdcdf7c25be08ca1a1efdc520dbe75be985f3"]}
4+
<< {"jsonrpc":"2.0","id":1,"result":{"gas":21000,"failed":false,"returnValue":"0x","structLogs":[]}}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// requests a trace for a non-existent transaction hash; the client must return an error
2+
>> {"jsonrpc":"2.0","id":1,"method":"debug_traceTransaction","params":["0x0000000000000000000000000000000000000000000000000000000000000001"]}
3+
<< {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"transaction not found"}}

0 commit comments

Comments
 (0)