diff --git a/beacon_chain/beacon_chain_db.nim b/beacon_chain/beacon_chain_db.nim index d345976b7..f2add63a7 100644 --- a/beacon_chain/beacon_chain_db.nim +++ b/beacon_chain/beacon_chain_db.nim @@ -576,7 +576,7 @@ proc close*(db: BeaconChainDBV0) = discard db.stateStore.close() discard db.backend.close() -proc close*(db: BeaconchainDB) = +proc close*(db: BeaconChainDB) = if db.db == nil: return # Close things in reverse order @@ -1033,7 +1033,7 @@ proc loadSummaries*(db: BeaconChainDB): Table[Eth2Digest, BeaconBlockSummary] = discard db.summaries.find([], proc(k, v: openArray[byte]) = var output: BeaconBlockSummary - if k.len() == sizeof(Eth2Digest) and decodeSSz(v, output): + if k.len() == sizeof(Eth2Digest) and decodeSSZ(v, output): summaries[Eth2Digest(data: toArray(sizeof(Eth2Digest), k))] = output else: warn "Invalid summary in database", klen = k.len(), vlen = v.len() diff --git a/beacon_chain/conf.nim b/beacon_chain/conf.nim index 6130bdf5d..1fcd732ad 100644 --- a/beacon_chain/conf.nim +++ b/beacon_chain/conf.nim @@ -940,7 +940,7 @@ func walletsDir*(config: BeaconNodeConf): string = config.dataDir / "wallets" func outWalletName*(config: BeaconNodeConf): Option[WalletName] = - proc fail {.noReturn.} = + proc fail {.noreturn.} = raiseAssert "outWalletName should be used only in the right context" case config.cmd @@ -957,7 +957,7 @@ func outWalletName*(config: BeaconNodeConf): Option[WalletName] = fail() func outWalletFile*(config: BeaconNodeConf): Option[OutFile] = - proc fail {.noReturn.} = + proc fail {.noreturn.} = raiseAssert "outWalletName should be used only in the right context" case config.cmd diff --git a/beacon_chain/consensus_object_pools/attestation_pool.nim b/beacon_chain/consensus_object_pools/attestation_pool.nim index d68500b6f..778111b92 100644 --- a/beacon_chain/consensus_object_pools/attestation_pool.nim +++ b/beacon_chain/consensus_object_pools/attestation_pool.nim @@ -151,7 +151,7 @@ proc init*(T: type AttestationPool, dag: ChainDAGRef, dag.headState.data, current_justified_checkpoint).epoch, finalized_epoch = getStateField( dag.headState.data, finalized_checkpoint).epoch, - finalized_root = shortlog(dag.finalizedHead.blck.root) + finalized_root = shortLog(dag.finalizedHead.blck.root) T( dag: dag, diff --git a/beacon_chain/consensus_object_pools/blockchain_dag.nim b/beacon_chain/consensus_object_pools/blockchain_dag.nim index c70551496..773f575d7 100644 --- a/beacon_chain/consensus_object_pools/blockchain_dag.nim +++ b/beacon_chain/consensus_object_pools/blockchain_dag.nim @@ -1697,7 +1697,7 @@ proc aggregateAll*( if not firstKey.isSome(): return err("aggregate: invalid validator index") - var aggregateKey{.noInit.}: AggregatePublicKey + var aggregateKey{.noinit.}: AggregatePublicKey aggregateKey.init(firstKey.get()) @@ -1717,7 +1717,7 @@ proc aggregateAll*( return err("aggregateAll: mismatch in bits length") var - aggregateKey{.noInit.}: AggregatePublicKey + aggregateKey{.noinit.}: AggregatePublicKey inited = false for i in 0..