Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ethereum/tests/test_state.py DEBUG:root running test:'call_OOG_additionalGasCosts1' in '../fixtures/GeneralStateTests/stTest/call_OOG_additionalGasCosts1.json'
Verifying state test
Testing for Byzantium
Checking for values: g 30000 v 0 d 0x (indexes g 0 v 0 d 0)
DEBUG:eth.pb.tx TX NEW txdict={'nonce': 0, 'gasprice': 1, 'startgas': 30000, 'to': '0x1000000000000000000000000000000000000000', 'value': 0, 'data': '0x', 'v': 27, 'r': 50415895627259968624139904459091557242392994223712411832230948435819815598271, 's': 37830658489601452908686572182822234897977935569259462575426534625003775242715, 'sender': '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b', 'hash': '0xbadb9810523b1f38aa0e06f971483a3d988b60901b72f6053c218f7befb0cb78'}
DEBUG:eth.pb.msg MSG APPLY sender=a94f5374fce5edbc8e2a8697c15331677e6ebf0b to=1000000000000000000000000000000000000000 gas=9000 value=0 codelen=35 data= pre_storage={'balance': '1000000000000000000', 'nonce': '0', 'code': '0x60406000604060006000731000000000000000000000000000000000000001611770f1', 'storage': {}} static=False depth=0
TRACE:eth.vm.op vm op=PUSH1 stack=[] storage={'balance': '1000000000000000000', 'nonce': '0', 'code': '0x60406000604060006000731000000000000000000000000000000000000001611770f1', 'storage': {}} gas=b'9000' inst=96 pc=b'0' depth=0 address=b'\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' steps=0 pushvalue=64
{0: 64, 2: 0, 4: 64, 6: 0, 8: 0, 10: 91343852333181432387730302044767688728495783937, 31: 6000}
TRACE:eth.vm.op vm op=PUSH1 stack=[] storage={'balance': '1000000000000000000', 'nonce': '0', 'code': '0x60406000604060006000731000000000000000000000000000000000000001611770f1', 'storage': {}} gas=b'9000' gas_cost=b'3' fee=3 inst=96 pc=b'0' depth=0 address=b'\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' steps=0 pushvalue=64
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64'] gas=b'8997' inst=96 pc=b'2' steps=1 depth=0 pushvalue=0
{0: 64, 2: 0, 4: 64, 6: 0, 8: 0, 10: 91343852333181432387730302044767688728495783937, 31: 6000}
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64'] gas=b'8997' gas_cost=b'3' fee=3 inst=96 pc=b'2' steps=1 depth=0 pushvalue=0
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64', b'0'] gas=b'8994' inst=96 pc=b'4' steps=2 depth=0 pushvalue=64
{0: 64, 2: 0, 4: 64, 6: 0, 8: 0, 10: 91343852333181432387730302044767688728495783937, 31: 6000}
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64', b'0'] gas=b'8994' gas_cost=b'3' fee=3 inst=96 pc=b'4' steps=2 depth=0 pushvalue=64
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64', b'0', b'64'] gas=b'8991' inst=96 pc=b'6' steps=3 depth=0 pushvalue=0
{0: 64, 2: 0, 4: 64, 6: 0, 8: 0, 10: 91343852333181432387730302044767688728495783937, 31: 6000}
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64', b'0', b'64'] gas=b'8991' gas_cost=b'3' fee=3 inst=96 pc=b'6' steps=3 depth=0 pushvalue=0
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64', b'0', b'64', b'0'] gas=b'8988' inst=96 pc=b'8' steps=4 depth=0 pushvalue=0
{0: 64, 2: 0, 4: 64, 6: 0, 8: 0, 10: 91343852333181432387730302044767688728495783937, 31: 6000}
TRACE:eth.vm.op vm op=PUSH1 stack=[b'64', b'0', b'64', b'0'] gas=b'8988' gas_cost=b'3' fee=3 inst=96 pc=b'8' steps=4 depth=0 pushvalue=0
TRACE:eth.vm.op vm op=PUSH20 stack=[b'64', b'0', b'64', b'0', b'0'] gas=b'8985' inst=115 pc=b'10' steps=5 depth=0 pushvalue=91343852333181432387730302044767688728495783937
{0: 64, 2: 0, 4: 64, 6: 0, 8: 0, 10: 91343852333181432387730302044767688728495783937, 31: 6000}
TRACE:eth.vm.op vm op=PUSH20 stack=[b'64', b'0', b'64', b'0', b'0'] gas=b'8985' gas_cost=b'3' fee=3 inst=115 pc=b'10' steps=5 depth=0 pushvalue=91343852333181432387730302044767688728495783937
TRACE:eth.vm.op vm op=PUSH2 stack=[b'64', b'0', b'64', b'0', b'0', b'91343852333181432387730302044767688728495783937'] gas=b'8982' inst=97 pc=b'31' steps=6 depth=0 pushvalue=6000
{0: 64, 2: 0, 4: 64, 6: 0, 8: 0, 10: 91343852333181432387730302044767688728495783937, 31: 6000}
TRACE:eth.vm.op vm op=PUSH2 stack=[b'64', b'0', b'64', b'0', b'0', b'91343852333181432387730302044767688728495783937'] gas=b'8982' gas_cost=b'3' fee=3 inst=97 pc=b'31' steps=6 depth=0 pushvalue=6000
TRACE:eth.vm.op vm op=CALL stack=[b'64', b'0', b'64', b'0', b'0', b'91343852333181432387730302044767688728495783937', b'6000'] gas=b'8979' inst=241 pc=b'34' steps=7 depth=0
DEBUG:eth.pb.msg MSG APPLY sender=1000000000000000000000000000000000000000 to=1000000000000000000000000000000000000001 gas=6000 value=0 codelen=0 data=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 pre_storage={'balance': '0', 'nonce': '0', 'code': '0x', 'storage': {}} static=False depth=1
TRACE:eth.vm.op vm op=STOP stack=[] storage={'balance': '0', 'nonce': '0', 'code': '0x', 'storage': {}} gas=b'6000' gas_cost=b'0' fee=0 inst=0 pc=b'0' depth=1 address=b'\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01' steps=0
TRACE:eth.vm.exit EXIT cause=CODE OUT OF RANGE
DEBUG:eth.pb.msg MSG APPLIED gas_remained=6000 sender=1000000000000000000000000000000000000000 to=1000000000000000000000000000000000000001 data=[] post_storage={'balance': '0', 'nonce': '0', 'code': '0x', 'storage': {}}
TRACE:eth.vm.op vm op=CALL stack=[b'64', b'0', b'64', b'0', b'0', b'91343852333181432387730302044767688728495783937', b'6000'] gas=b'8979' gas_cost=b'706' fee=40 inst=241 pc=b'34' steps=7 depth=0
TRACE:eth.vm.op vm op=STOP stack=[b'1'] memory=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 gas=b'8273' gas_cost=b'0' fee=0 inst=0 pc=b'35' steps=8 depth=0
TRACE:eth.vm.exit EXIT cause=CODE OUT OF RANGE
DEBUG:eth.pb.msg MSG APPLIED gas_remained=8273 sender=a94f5374fce5edbc8e2a8697c15331677e6ebf0b to=1000000000000000000000000000000000000000 data=[] post_storage={'balance': '1000000000000000000', 'nonce': '0', 'code': '0x60406000604060006000731000000000000000000000000000000000000001611770f1', 'storage': {}}
DEBUG:eth.pb.tx TX APPLIED result=1 gas_remained=8273 data=[]
DEBUG:eth.pb.tx TX SUCCESS data=[]
Applied tx
a94f5374fce5edbc8e2a8697c15331677e6ebf0b {'nonce': ['0', '->', '1'], 'balance': ['1000000000000000000', '->', '999999999999978273']}
2adc25665018aa1fe0e6bc666dac8fc2697ff9ba ['+', {'balance': '21727', 'nonce': '0', 'code': '0x', 'storage': {}}]
Hash matched!: 0x8e5bd1989eadfd5129c7f0ae2ba9be8c347a8d109a000c333443a582eafcc58d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment