Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions beacon_chain/conf.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2018-2024 Status Research & Development GmbH
# Copyright (c) 2018-2025 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
Expand Down Expand Up @@ -1496,13 +1496,8 @@ proc engineApiUrls*(config: BeaconNodeConf): seq[EngineApiUrl] =
config.jwtSecret.configJwtSecretOpt)

proc loadKzgTrustedSetup*(): Result[void, string] =
const
vendorDir = currentSourcePath.parentDir.replace('\\', '/') & "/../vendor"
trustedSetup = staticRead(
vendorDir & "/nim-kzg4844/kzg4844/csources/src/trusted_setup.txt")

static: doAssert const_preset in ["mainnet", "gnosis", "minimal"]
loadTrustedSetupFromString(trustedSetup, 0)
loadTrustedSetupFromString(kzg.trustedSetup, 0)

proc loadKzgTrustedSetup*(trustedSetupPath: string): Result[void, string] =
try:
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-kzg4844