Fix 'trustedSetupFile' is not accessible for type NimbusConf.cmd == import (#2008)

This commit is contained in:
andri lim 2024-02-04 22:45:54 +07:00 committed by GitHub
parent a441ec3cb1
commit 8a40521cbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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:

View File

@ -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)