Fix 'trustedSetupFile' is not accessible for type NimbusConf.cmd == import (#2008)
This commit is contained in:
parent
a441ec3cb1
commit
8a40521cbe
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Nimbus
|
# Nimbus
|
||||||
# Copyright (c) 2021-2023 Status Research & Development GmbH
|
# Copyright (c) 2021-2024 Status Research & Development GmbH
|
||||||
# Licensed under either of
|
# Licensed under either of
|
||||||
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0)
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
|
@ -291,7 +291,7 @@ proc start(nimbus: NimbusNode, conf: NimbusConf) =
|
||||||
|
|
||||||
let protocols = conf.getProtocolFlags()
|
let protocols = conf.getProtocolFlags()
|
||||||
|
|
||||||
if conf.trustedSetupFile.isSome:
|
if conf.cmd != NimbusCmd.`import` and conf.trustedSetupFile.isSome:
|
||||||
let fileName = conf.trustedSetupFile.get()
|
let fileName = conf.trustedSetupFile.get()
|
||||||
let res = Kzg.loadTrustedSetup(fileName)
|
let res = Kzg.loadTrustedSetup(fileName)
|
||||||
if res.isErr:
|
if res.isErr:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Nimbus
|
# Nimbus
|
||||||
# Copyright (c) 2021 Status Research & Development GmbH
|
# Copyright (c) 2021-2024 Status Research & Development GmbH
|
||||||
# Licensed under either of
|
# Licensed under either of
|
||||||
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0)
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
Loading…
Reference in New Issue