rm chronicles from beacon_chain/filepath.nim beacon_chain/networking/network_metadata.nim beacon_chain/spec/crypto.nim

This commit is contained in:
Jenkins 2024-03-19 00:38:59 +02:00
parent 36e9cd4ad7
commit 0584aeebb5
3 changed files with 1 additions and 14 deletions

View File

@ -7,7 +7,6 @@
{.push raises: [].}
import chronicles
import stew/io2
import spec/keystore

View File

@ -12,7 +12,6 @@ import
stew/[byteutils, objects], stew/shims/macros, nimcrypto/hash,
web3/[conversions],
web3/primitives as web3types,
chronicles,
eth/common/eth_types_json_serialization,
../spec/[eth2_ssz_serialization, forks]
@ -133,7 +132,7 @@ proc loadEth2NetworkMetadata*(
# TODO better printing
echo "Unknown constants in file: " & unknowns
else:
warn "Unknown constants in config file", unknowns
echo "Unknown constants in config file", unknowns
cfg
else:
defaultRuntimeConfig
@ -350,30 +349,20 @@ proc getMetadataForNetwork*(networkName: string): Eth2NetworkMetadata =
try:
let res = loadEth2NetworkMetadata(networkName)
res.valueOr:
fatal "The selected network is not compatible with the current build",
reason = res.error
quit 1
except IOError as exc:
fatal "Cannot load network: IOError", msg = exc.msg, networkName
quit 1
except PresetFileError as exc:
fatal "Cannot load network: PresetFileError", msg = exc.msg, networkName
quit 1
else:
fatal "config.yaml not found for network", networkName
quit 1
if networkName in ["goerli", "prater"]:
warn "Goerli is deprecated and will stop being supported; https://blog.ethereum.org/2023/11/30/goerli-lts-update suggests migrating to Holesky or Sepolia"
let metadata =
when const_preset == "gnosis":
case toLowerAscii(networkName)
of "gnosis":
gnosisMetadata
of "gnosis-chain":
warn "`--network:gnosis-chain` is deprecated, " &
"use `--network:gnosis` instead"
gnosisMetadata
of "chiado":
chiadoMetadata

View File

@ -4,7 +4,6 @@ import
results,
stew/[bitseqs, endians2, objects, byteutils],
blscurve,
chronicles,
bearssl/rand,
json_serialization