diff --git a/beacon_chain/eth1/eth1_monitor.nim b/beacon_chain/eth1/eth1_monitor.nim index b84758d5c..b74cc0c72 100644 --- a/beacon_chain/eth1/eth1_monitor.nim +++ b/beacon_chain/eth1/eth1_monitor.nim @@ -407,7 +407,8 @@ template awaitWithRetries*[T](lazyFutExpr: Future[T], if not f.finished: await cancelAndWait(f) elif f.failed: - static: doAssert f.error of CatchableError + when not (f.error of CatchableError): + static: doAssert false, "f.error not CatchableError" debug "Web3 request failed", req = reqType, err = f.error.msg inc failed_web3_requests else: diff --git a/beacon_chain/rpc/rest_config_api.nim b/beacon_chain/rpc/rest_config_api.nim index 94f71d392..73b29f7ad 100644 --- a/beacon_chain/rpc/rest_config_api.nim +++ b/beacon_chain/rpc/rest_config_api.nim @@ -6,7 +6,6 @@ import stew/[byteutils, base10], chronicles import ".."/beacon_node, - ".."/eth1/eth1_monitor, ".."/spec/forks, "."/rest_utils from ../fork_choice/proto_array import PROPOSER_SCORE_BOOST diff --git a/beacon_chain/rpc/rest_debug_api.nim b/beacon_chain/rpc/rest_debug_api.nim index 86e819ec8..d7175c307 100644 --- a/beacon_chain/rpc/rest_debug_api.nim +++ b/beacon_chain/rpc/rest_debug_api.nim @@ -7,7 +7,7 @@ import std/sequtils import chronicles -import ".."/[version, beacon_node], +import ".."/beacon_node, ".."/spec/forks, "."/[rest_utils, state_ttl_cache] diff --git a/beacon_chain/rpc/rest_key_management_api.nim b/beacon_chain/rpc/rest_key_management_api.nim index 5427adec3..fe67cced5 100644 --- a/beacon_chain/rpc/rest_key_management_api.nim +++ b/beacon_chain/rpc/rest_key_management_api.nim @@ -8,7 +8,7 @@ import std/[tables, os, strutils, uri] import chronos, chronicles, confutils, stew/[base10, results, io2], blscurve import ".."/validators/slashing_protection -import ".."/[conf, version, filepath, beacon_node] +import ".."/[conf, filepath, beacon_node] import ".."/spec/[keystore, crypto] import ".."/rpc/rest_utils import ".."/validators/[keystore_management, validator_pool, validator_duties] diff --git a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim index 67d64b867..fd0b94853 100644 --- a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim +++ b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim @@ -145,7 +145,7 @@ proc readValue*(reader: var JsonReader[RestJson], for e in reader.readArray(string): let parsed = try: - parseBiggestUint(e) + parseBiggestUInt(e) except ValueError as err: reader.raiseUnexpectedValue("A string-encoded 8-bit usigned integer value expected") diff --git a/beacon_chain/trusted_node_sync.nim b/beacon_chain/trusted_node_sync.nim index 08d9e4bf6..27fd4cf9c 100644 --- a/beacon_chain/trusted_node_sync.nim +++ b/beacon_chain/trusted_node_sync.nim @@ -7,7 +7,7 @@ {.push raises: [Defect].} import - stew/[assign2, base10], + stew/base10, chronicles, chronos, ./sync/sync_manager, ./consensus_object_pools/blockchain_dag, diff --git a/beacon_chain/validators/validator_duties.nim b/beacon_chain/validators/validator_duties.nim index 5ab3f24ef..333568aae 100644 --- a/beacon_chain/validators/validator_duties.nim +++ b/beacon_chain/validators/validator_duties.nim @@ -16,10 +16,10 @@ import std/[os, sequtils, tables], # Nimble packages - stew/[assign2, byteutils, objects], + stew/[byteutils, objects], chronos, metrics, chronicles, chronicles/timings, - json_serialization/std/[options, sets, net], serialization/errors, + json_serialization/std/[options, sets, net], eth/db/kvstore, eth/keys, eth/p2p/discoveryv5/[protocol, enr], web3/ethtypes, @@ -36,7 +36,7 @@ import ../networking/eth2_network, ../sszdump, ../sync/sync_manager, ../gossip_processing/[block_processor, consensus_manager], - ".."/[conf, beacon_clock, beacon_node, version], + ".."/[conf, beacon_clock, beacon_node], "."/[slashing_protection, validator_pool, keystore_management] from eth/async_utils import awaitWithTimeout @@ -526,7 +526,7 @@ proc forkchoice_updated(state: bellatrix.BeaconState, none(bellatrix.PayloadID) proc get_execution_payload( - payload_id: Option[bellatrix.PayloadId], execution_engine: Eth1Monitor): + payload_id: Option[bellatrix.PayloadID], execution_engine: Eth1Monitor): Future[bellatrix.ExecutionPayload] {.async.} = return if payload_id.isNone(): # Pre-merge, empty payload