Skip to content

Commit 209990d

Browse files
arnetheduckTomi-3-0
authored andcommitted
kzg: load trusted setup for new constant (status-im#6826)
* kzg: load trusted setup for new constant * bump * copyright
1 parent 49b06d1 commit 209990d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

beacon_chain/conf.nim

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# beacon_chain
2-
# Copyright (c) 2018-2024 Status Research & Development GmbH
2+
# Copyright (c) 2018-2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -1496,13 +1496,8 @@ proc engineApiUrls*(config: BeaconNodeConf): seq[EngineApiUrl] =
14961496
config.jwtSecret.configJwtSecretOpt)
14971497

14981498
proc loadKzgTrustedSetup*(): Result[void, string] =
1499-
const
1500-
vendorDir = currentSourcePath.parentDir.replace('\\', '/') & "/../vendor"
1501-
trustedSetup = staticRead(
1502-
vendorDir & "/nim-kzg4844/kzg4844/csources/src/trusted_setup.txt")
1503-
15041499
static: doAssert const_preset in ["mainnet", "gnosis", "minimal"]
1505-
loadTrustedSetupFromString(trustedSetup, 0)
1500+
loadTrustedSetupFromString(kzg.trustedSetup, 0)
15061501

15071502
proc loadKzgTrustedSetup*(trustedSetupPath: string): Result[void, string] =
15081503
try:

0 commit comments

Comments
 (0)