Minor changes.

This commit is contained in:
Jacques Wagener 2018-10-10 10:22:59 +02:00
parent 32d45a76fa
commit 35433fcaca
No known key found for this signature in database
GPG Key ID: C294D1025DA0E923
3 changed files with 8 additions and 3 deletions

View File

@ -41,7 +41,7 @@ def get_tester(code):
EthereumTester,
)
tester = EthereumTester(backend=PyEVMDebugBackend())
import ipdb; ipdb.set_trace()
def zero_gas_price_strategy(web3, transaction_params=None):
return 0 # zero gas price makes testing simpler.

View File

@ -23,10 +23,12 @@ class DebugComputation(ByzantiumComputation):
@classmethod
def apply_computation(cls, state, message, transaction_context):
print('hello!!!!!!')
import ipdb; ipdb.set_trace()
with cls(state, message, transaction_context) as computation:
print('hello!!!!!!')
import ipdb; ipdb.set_trace()
# Early exit on pre-compiles
if message.code_address in computation.precompiles:
computation.precompiles[message.code_address](computation)

View File

@ -45,5 +45,8 @@ def _setup_tester_chain():
class PyEVMDebugBackend(PyEVMBackend):
def __init__(self):
super().__init__()
def reset_to_genesis(self):
self.account_keys, self.chain = _setup_tester_chain()