Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion hydrachain/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from pyethapp.console_service import Console
from pyethapp.db_service import DBService
from pyethapp.jsonrpc import JSONRPCServer
from pygelf.handlers import GelfUdpHandler

from hydrachain import __version__
from hydrachain.hdc_service import ChainService
Expand Down
3 changes: 2 additions & 1 deletion hydrachain/hdc_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from ethereum.refcount_db import RefcountDB
from ethereum.blocks import Block, VerificationFailed
from ethereum.transactions import Transaction
from ethereum import exceptions
from devp2p.service import WiredService
from ethereum import config as ethereum_config
import gevent
Expand Down Expand Up @@ -296,7 +297,7 @@ def _link_block(self, t_block):
log.debug('deserialized', elapsed='%.4fs' % elapsed, ts=time.time(),
gas_used=block.gas_used, gpsec=self.gpsec(block.gas_used, elapsed))
assert block.header.check_pow()
except processblock.InvalidTransaction as e:
except exceptions.InvalidTransaction as e:
log.warn('invalid transaction', block=t_block, error=e, FIXME='ban node')
return
except VerificationFailed as e:
Expand Down
3 changes: 2 additions & 1 deletion hydrachain/native_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import ethereum.utils as utils
import ethereum.vm as vm
from ethereum import slogging
from ethereum import exceptions
from ethereum.transactions import Transaction
from ethereum.utils import encode_int, zpad, big_endian_to_int, int_to_big_endian

Expand Down Expand Up @@ -574,7 +575,7 @@ def test_call(block, sender, to, data='', gasprice=0, value=0):

try:
success, output = processblock.apply_transaction(test_block, tx)
except processblock.InvalidTransaction as e:
except exceptions.InvalidTransaction as e:
success = False
assert block.state_root == state_root_before
if success:
Expand Down