Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@holiman
Created October 14, 2018 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holiman/c87fc7cdba83086316df7a8b1a247fa6 to your computer and use it in GitHub Desktop.
Save holiman/c87fc7cdba83086316df7a8b1a247fa6 to your computer and use it in GitHub Desktop.
trace
```
#cat /tmp/evmlab/artefacts/ropsten_mini-combined_trace.log
[*] pc 0 op PUSH1( 96) gas 0x23ccaa depth 0 stack []
[*] pc 2 op SLOAD( 84) gas 0x23cca7 depth 0 stack ['0x3']
[*] pc 3 op CALLER( 51) gas 0x23cbdf depth 0 stack ['0x0']
[*] pc 4 op ADDRESS( 48) gas 0x23cbdd depth 0 stack ['0x0', '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b']
[*] pc 5 op EQ( 20) gas 0x23cbdb depth 0 stack ['0x0', '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b', '0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6']
[*] pc 6 op PUSH1( 96) gas 0x23cbd8 depth 0 stack ['0x0', '0x0']
[*] pc 8 op JUMPI( 87) gas 0x23cbd5 depth 0 stack ['0x0', '0x0', '0x1d']
[*] pc 9 op JUMPDEST( 91) gas 0x23cbcb depth 0 stack ['0x0']
[*] pc 10 op PUSH1( 96) gas 0x23cbca depth 0 stack ['0x0']
[*] pc 12 op PUSH1( 96) gas 0x23cbc7 depth 0 stack ['0x0', '0x1']
[*] pc 14 op SSTORE( 85) gas 0x23cbc4 depth 0 stack ['0x0', '0x1', '0x3']
[*] pc 15 op PUSH1( 96) gas 0x237da4 depth 0 stack ['0x0']
[*] pc 17 op PUSH1( 96) gas 0x237da1 depth 0 stack ['0x0', '0x0']
[*] pc 19 op PUSH1( 96) gas 0x237d9e depth 0 stack ['0x0', '0x0', '0x0']
[*] pc 21 op PUSH1( 96) gas 0x237d9b depth 0 stack ['0x0', '0x0', '0x0', '0x0']
[*] pc 23 op PUSH1( 96) gas 0x237d98 depth 0 stack ['0x0', '0x0', '0x0', '0x0', '0x0']
[*] pc 25 op ADDRESS( 48) gas 0x237d95 depth 0 stack ['0x0', '0x0', '0x0', '0x0', '0x0', '0x0']
[*] pc 26 op GAS( 90) gas 0x237d93 depth 0 stack ['0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6']
[*] pc 27 op CALL(241) gas 0x237d91 depth 0 stack ['0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6', '0x237d91']
[*] pc 0 op PUSH1( 96) gas 0x22ecea depth 1 stack []
[*] pc 2 op SLOAD( 84) gas 0x22ece7 depth 1 stack ['0x3']
[*] pc 3 op CALLER( 51) gas 0x22ec1f depth 1 stack ['0x1']
[*] pc 4 op ADDRESS( 48) gas 0x22ec1d depth 1 stack ['0x1', '0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6']
[*] pc 5 op EQ( 20) gas 0x22ec1b depth 1 stack ['0x1', '0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6', '0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6']
[*] pc 6 op PUSH1( 96) gas 0x22ec18 depth 1 stack ['0x1', '0x1']
[*] pc 8 op JUMPI( 87) gas 0x22ec15 depth 1 stack ['0x1', '0x1', '0x1d']
[*] pc 29 op JUMPDEST( 91) gas 0x22ec0b depth 1 stack ['0x1']
[*] pc 30 op PUSH1( 96) gas 0x22ec0a depth 1 stack ['0x1']
[*] pc 32 op PUSH1( 96) gas 0x22ec07 depth 1 stack ['0x1', '0x3']
[*] pc 34 op SSTORE( 85) gas 0x22ec04 depth 1 stack ['0x1', '0x3', '0x3']
[*] pc 35 op PUSH1( 96) gas 0x22eb3c depth 1 stack ['0x1']
[*] pc 37 op PUSH1( 96) gas 0x22eb39 depth 1 stack ['0x1', '0x1']
[*] pc 39 op SSTORE( 85) gas 0x22eb36 depth 1 stack ['0x1', '0x1', '0x3']
[!!] geth stateRoot 5f121c73ba594aa1893d912d1a6a695f0f65a16658ad1eecf33ffcdab3f7e5e4
[!!] parity None[~/workspace/evmlab]
```
parity has the same stateroot...
{
"SstoreCallToSelf": {
"_info": {
"comment": "Tests setting a storage slot, then calling self and changing the same slot to different value",
"filledwith": "manaually filled by @holiman",
"lllcversion": "none",
"source": "none",
"sourceHash": "none"
},
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x20000",
"currentGasLimit": "0x1000000000",
"currentNumber": "0x01",
"currentTimestamp": "0x03e8",
"previousHash": "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post": {
"Constantinople": [
{
"hash": "0xeeed149cdd8e47cea5160425fdf6f2479b0e00800eaa83b7bbe24455378918ee",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6": {
"balance": "0xffa8c0ff92d4c000",
"code": "0x600354333014601d575b600160035560006000600060006000305af1005b6003600355600160035500",
"nonce": "0x00",
"storage": {
"0x03": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"balance": "0xffffffffffffffff",
"code": "",
"nonce": "0x00",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0x241eb2"
],
"gasPrice": "0x01",
"nonce": "0x00",
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to": "0xe12d6474ac4964b9f23812bf3375c1fe637ad3b6",
"value": [
"0x00"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment