Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 4b5fcab

Browse files
committed
Merge branch 'develop' of github.com:ethereum/pyethereum into develop
2 parents 5ee2bdb + 15f0af0 commit 4b5fcab

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

ethereum/state.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,11 @@ def revert(self, snapshot):
258258
h, L, auxvars = snapshot
259259
three_touched = self.cache[THREE].touched if THREE in self.cache else False # Compatibility with weird geth+parity bug
260260
while len(self.journal) > L:
261-
lastitem = self.journal.pop()
262-
lastitem()
261+
try:
262+
lastitem = self.journal.pop()
263+
lastitem()
264+
except Exception as e:
265+
print(e)
263266
if h != self.trie.root_hash:
264267
assert L == 0
265268
self.trie.root_hash = h

ethereum/tools/tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class TransactionFailed(Exception):
5757
import types
5858

5959
STARTGAS = 3141592
60-
GASPRICE = 1
60+
GASPRICE = 0
6161

6262
from ethereum.slogging import configure_logging
6363
config_string = ':info'

ethereum/vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def vm_execute(ext, msg, code):
637637
# Get result
638638
result, gas, data = ext.msg(call_msg)
639639
if result == 0:
640-
stk.append(0)
640+
return vm_exception('Child Call Failed')
641641
else:
642642
stk.append(1)
643643
# Set output memory

0 commit comments

Comments
 (0)