Skip to content

Commit

Permalink
integration: fix trace_replay* tests (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixtysixter authored Sep 16, 2024
1 parent 3bfa899 commit 7b769a2
Show file tree
Hide file tree
Showing 31 changed files with 3,162 additions and 3,186 deletions.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_01.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_02.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_03.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_04.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_05.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_08.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_13.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_14.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_15.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_16.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_17.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_18.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_19.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_20.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_21.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_22.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_23.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_24.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_25.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_26.tar
Binary file not shown.
3,102 changes: 1,551 additions & 1,551 deletions integration/mainnet/trace_replayBlockTransactions/test_27.json

Large diffs are not rendered by default.

Binary file modified integration/mainnet/trace_replayBlockTransactions/test_28.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_29.tar
Binary file not shown.
3,102 changes: 1,551 additions & 1,551 deletions integration/mainnet/trace_replayBlockTransactions/test_30.json

Large diffs are not rendered by default.

Binary file modified integration/mainnet/trace_replayBlockTransactions/test_31.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_32.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_33.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_34.tar
Binary file not shown.
Binary file modified integration/mainnet/trace_replayBlockTransactions/test_35.tar
Binary file not shown.
118 changes: 59 additions & 59 deletions integration/mainnet/trace_replayTransaction/test_24.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,69 +16,69 @@
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0x40ba0dd32ef02315514a7859c49626750219acf4": {
"balance": {
"*": {
"from": "0x1b9de6773312e400",
"to": "0x1b9c5560e2ba5400"
"result": {
"output": "0x",
"stateDiff": {
"0x40ba0dd32ef02315514a7859c49626750219acf4": {
"balance": {
"*": {
"from": "0x1b9de6773312e400",
"to": "0x1b9c5560e2ba5400"
}
},
"code": "=",
"nonce": {
"*": {
"from": "0x27",
"to": "0x28"
}
},
"storage": {}
},
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x1a3d0a7c5adacf42e2",
"to": "0x1a3d0c0d712b27d2e2"
}
},
"code": "=",
"nonce": "=",
"storage": {}
}
},
"code": "=",
"nonce": {
"*": {
"from": "0x27",
"to": "0x28"
"trace": [
{
"action": {
"callType": "call",
"from": "0x40ba0dd32ef02315514a7859c49626750219acf4",
"gas": "0x0",
"input": "0x",
"to": "0x9919d27045e0170a3baf247a2ad4342692126e6e",
"value": "0x16345785d8a0000"
},
"error": "out of gas",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "call"
}
},
"storage": {}
},
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x1a3d0a7c5adacf42e2",
"to": "0x1a3d0c0d712b27d2e2"
}
},
"code": "=",
"nonce": "=",
"storage": {}
}
},
"trace": [
{
"action": {
"callType": "call",
"from": "0x40ba0dd32ef02315514a7859c49626750219acf4",
"gas": "0x0",
"input": "0x",
"to": "0x9919d27045e0170a3baf247a2ad4342692126e6e",
"value": "0x16345785d8a0000"
},
"error": "out of gas",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "call"
}
],
"transactionHash": "0xff8fdcd975d1c4f7ded80777727480c7f499e72a9ac9c51aca2dc66e0f77dad4",
"vmTrace": {
"code": "0x606060405236156100495763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636ea056a98114610052578063c0ee0b8a14610092575b6100505b5b565b005b341561005a57fe5b61007e73ffffffffffffffffffffffffffffffffffffffff60043516602435610104565b604080519115158252519081900360200190f35b341561009a57fe5b604080516020600460443581810135601f810184900484028501840190955284845261005094823573ffffffffffffffffffffffffffffffffffffffff169460248035956064949293919092019181908401838280828437509496506101ef95505050505050565b005b6000805460408051602090810184905281517f3c18d31800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015292519290931692633c18d318926024808301939282900301818787803b151561017b57fe5b6102c65a03f1151561018957fe5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1660003660006040516020015260405180838380828437820191505092505050602060405180830381856102c65a03f415156101e057fe5b50506040515190505b92915050565b5b5050505600a165627a7a723058204cdd69fdcf3cf6cbee9677fe380fa5f044048aa9e060ec5619a21ca5a5bd4cd10029",
"ops": [
{
"cost": 0,
"ex": null,
"idx": "2-0",
"op": "PUSH1",
"pc": 0,
"sub": null
],
"transactionHash": "0xff8fdcd975d1c4f7ded80777727480c7f499e72a9ac9c51aca2dc66e0f77dad4",
"vmTrace": {
"code": "0x606060405236156100495763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636ea056a98114610052578063c0ee0b8a14610092575b6100505b5b565b005b341561005a57fe5b61007e73ffffffffffffffffffffffffffffffffffffffff60043516602435610104565b604080519115158252519081900360200190f35b341561009a57fe5b604080516020600460443581810135601f810184900484028501840190955284845261005094823573ffffffffffffffffffffffffffffffffffffffff169460248035956064949293919092019181908401838280828437509496506101ef95505050505050565b005b6000805460408051602090810184905281517f3c18d31800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015292519290931692633c18d318926024808301939282900301818787803b151561017b57fe5b6102c65a03f1151561018957fe5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1660003660006040516020015260405180838380828437820191505092505050602060405180830381856102c65a03f415156101e057fe5b50506040515190505b92915050565b5b5050505600a165627a7a723058204cdd69fdcf3cf6cbee9677fe380fa5f044048aa9e060ec5619a21ca5a5bd4cd10029",
"ops": [
{
"cost": 3,
"ex": null,
"idx": "2-0",
"op": "PUSH1",
"pc": 0,
"sub": null
}
]
}
]
}
}
}
}
}
]
26 changes: 1 addition & 25 deletions integration/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,7 @@
"mainnet/trace_rawTransaction/test_02.json", # as executed on latest block
"mainnet/trace_rawTransaction/test_03.json", # as executed on latest block

"mainnet/trace_replayTransaction/test_24.json", # diff on gasCost on last opcode (OUTOFGAS)

"mainnet/trace_replayBlockTransactions/test_01.tar", # diff on gasCost + diff last opcode (OUTOFGAS)
"mainnet/trace_replayBlockTransactions/test_03.tar", # diff on 8 gasCost + 2 diff last opcode (OUTOFGAS)
"mainnet/trace_replayBlockTransactions/test_04.tar", # diff on 1 gasCost
"mainnet/trace_replayBlockTransactions/test_05.tar", # diff on 6 gasCost
"mainnet/trace_replayBlockTransactions/test_08.tar", # diff on 1 gasCost
"mainnet/trace_replayBlockTransactions/test_13.tar", # diff on CALLCODE gasCost
"mainnet/trace_replayBlockTransactions/test_14.tar", # diff on 15 gasCost
"mainnet/trace_replayBlockTransactions/test_15.tar", # diff on 3 gasCost
"mainnet/trace_replayBlockTransactions/test_16.tar", # diff on 25 gasCost
"mainnet/trace_replayBlockTransactions/test_17.tar", # diff on 21 gasCost
"mainnet/trace_replayBlockTransactions/test_18.tar", # diff on 5 gasCost + diff last opcode (OUTOFGAS)
"mainnet/trace_replayBlockTransactions/test_19.tar", # diff on 11 gasCost
"mainnet/trace_replayBlockTransactions/test_20.tar", # diff on 18 gasCost
"mainnet/trace_replayBlockTransactions/test_21.tar", # diff on 1 gasCost
"mainnet/trace_replayBlockTransactions/test_22.tar", # diff on 26 gasCost
"mainnet/trace_replayBlockTransactions/test_23.tar", # diff on 14 gasCost
"mainnet/trace_replayBlockTransactions/test_24.tar", # diff on 9 gasCost
"mainnet/trace_replayBlockTransactions/test_28.tar", # diff on 10 gasCost
"mainnet/trace_replayBlockTransactions/test_29.tar", # diff on 4 gasCost 2 CALL stack info
"mainnet/trace_replayBlockTransactions/test_31.tar", # diff on 12 gasCost
"mainnet/trace_replayBlockTransactions/test_32.tar", # diff on 8 gasCost
"mainnet/trace_replayBlockTransactions/test_33.tar", # diff on 3 gasCost
"mainnet/trace_replayBlockTransactions/test_34.tar", # diff on 3 gasCost
"mainnet/trace_replayBlockTransactions/test_29.tar", # diff on stack info

"mainnet/engine_getPayloadV1/test_01.json", # exception when invoke execution interface
"mainnet/engine_getPayloadV2/test_01.json", # exception when invoke execution interface
Expand Down

0 comments on commit 7b769a2

Please sign in to comment.