hide You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 12:25:09 Jun 20, 2021 , and is part of the Community collection. The information on this web page may be out of date. See All versions of this archived page. Loading media information

Ethereal block 25531 failed, 'Error during code execution'

AronVanAmmersAronVanAmmers Amsterdam, NetherlandsMember Posts: 40 ✭✭
edited August 2014 in Geth - Go Implementation

When playing around with Ethereal and AlethZero on the testnet, the situation occurred that Ethereal doesn't show any blocks after 25530.

Knowing this is all pre-alpha I just deleted its database from C:\Users\[username]\.ethereal and let it reload the block chain. But alas, no further than 25530 once again.

In the log I see this:
2014/08/08 21:10:35 [STATE] (~) a94a73cf0f6caaf23cf8aaad405076b161619c0659f9a577b82491d0d5994cdd
2014/08/08 21:10:35 [VM] vm err0000 (MUL) stack err size = 0, required = 2
2014/08/08 21:10:35 [STATE] Error during code execution 0000 (MUL) stack err size = 0, required = 2
2014/08/08 21:10:35 [STATE] Error during code execution 0000 (MUL) stack err size = 0, required = 2
2014/08/08 21:10:35 [PEER] Block 3c80d104a2ca642a6aa5345314a97c1f965928cb564aed1aad1a9a6a30b79509 failed
2014/08/08 21:10:35 [PEER] Error validating tx sha. Received 943c5650551761ca876 05dee216668fb6490ab2d915e799e902b64b19bee1be3, got 01b2f40ee1600475c16427e8554b6 c4f4aba208424671caba1da7876e20a43b8
The mentioned block 3c80d104a2ca642a6aa5345314a97c1f965928cb564aed1aad1a9a6a30b79509 I can see in AlethZero as block 25531. It contains a transaction of my own, sent using AlethZero, addressed to contract 1147f92bcb6f3daa4b1ff73ef0d0eee792248431. This contract is an example currency contract created earlier using Ethereal. The source code of this contract:
contract.storage[tx.origin()] = 1000000

return compile {
var to = this.data[0]
var from = tx.origin()
var value = this.data[1]

if contract.storage[from] > value {
contract.storage[from] = contract.storage[from] - value
contract.storage[to] = contract.storage[to] + value
exit 1
exit 0
What the specific transaction did is try to send "coins" in this currency from an address that doesn't have any, to another address. I.e. running this transaction should just end up at exit 0.

Is anyone else's Ethereal getting these errors, or is it just me? (and hence some sort of state on my machine)
Any ideas on the cause and/or solution of this?

Meanwhile I'll just continue playing in AlethZero as it seems to update just fine :)



Sign In or Register to comment.