fix missing import when chronicles enabled

This commit is contained in:
jangko 2020-07-21 15:12:59 +07:00
parent 207065746c
commit 04dcec03a3
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
3 changed files with 5 additions and 1 deletions

View File

@ -162,6 +162,7 @@ proc process*(nimbus: NimbusNode) =
poll() poll()
except CatchableError as e: except CatchableError as e:
debug "Exception in poll()", exc = e.name, err = e.msg debug "Exception in poll()", exc = e.name, err = e.msg
discard e # silence warning when chronicles not activated
# Stop loop # Stop loop
waitFor nimbus.stop() waitFor nimbus.stop()

View File

@ -1,6 +1,6 @@
import ../db/db_chain, eth/common, chronicles, ../vm_state, ../vm_types, import ../db/db_chain, eth/common, chronicles, ../vm_state, ../vm_types,
../vm/[computation, message], ../vm/interpreter/vm_forks, stint, nimcrypto, ../vm/[computation, message], ../vm/interpreter/vm_forks, stint, nimcrypto,
../utils, eth/trie/db, ../tracer, ./executor, ../config, ../genesis, ../utils, ../utils, eth/trie/db, ./executor, ../config, ../genesis, ../utils,
stew/endians2 stew/endians2
type type

View File

@ -14,6 +14,9 @@ import
../utils/header, precompiles, ../utils/header, precompiles,
transaction_tracer, ../utils transaction_tracer, ../utils
when defined(chronicles_log_level):
import stew/byteutils
when defined(evmc_enabled): when defined(evmc_enabled):
import evmc/evmc, evmc_helpers, evmc_api, stew/ranges/ptr_arith import evmc/evmc, evmc_helpers, evmc_api, stew/ranges/ptr_arith