From 8a40521cbef7deee8780d4056dd2bbfcb23ffea8 Mon Sep 17 00:00:00 2001 From: andri lim Date: Sun, 4 Feb 2024 22:45:54 +0700 Subject: [PATCH] Fix 'trustedSetupFile' is not accessible for type NimbusConf.cmd == import (#2008) --- hive_integration/nodocker/build_sims.sh | 2 +- nimbus/nimbus.nim | 2 +- nimbus/sync/snap.nim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hive_integration/nodocker/build_sims.sh b/hive_integration/nodocker/build_sims.sh index 64eb1ff62..2838057d9 100644 --- a/hive_integration/nodocker/build_sims.sh +++ b/hive_integration/nodocker/build_sims.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Nimbus -# Copyright (c) 2021-2023 Status Research & Development GmbH +# Copyright (c) 2021-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # http://www.apache.org/licenses/LICENSE-2.0) diff --git a/nimbus/nimbus.nim b/nimbus/nimbus.nim index 21fe39bb9..4d6e193a8 100644 --- a/nimbus/nimbus.nim +++ b/nimbus/nimbus.nim @@ -291,7 +291,7 @@ proc start(nimbus: NimbusNode, conf: NimbusConf) = let protocols = conf.getProtocolFlags() - if conf.trustedSetupFile.isSome: + if conf.cmd != NimbusCmd.`import` and conf.trustedSetupFile.isSome: let fileName = conf.trustedSetupFile.get() let res = Kzg.loadTrustedSetup(fileName) if res.isErr: diff --git a/nimbus/sync/snap.nim b/nimbus/sync/snap.nim index 306de3224..3cda348b6 100644 --- a/nimbus/sync/snap.nim +++ b/nimbus/sync/snap.nim @@ -1,5 +1,5 @@ # Nimbus -# Copyright (c) 2021 Status Research & Development GmbH +# Copyright (c) 2021-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # http://www.apache.org/licenses/LICENSE-2.0)