mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-26 03:59:52 +00:00
Remove unused trusted setup loading (#1849)
This commit is contained in:
parent
5bfdcd0d27
commit
6ef5fd78b7
@ -208,16 +208,6 @@ proc loadKzgTrustedSetup*(): Result[void, string] =
|
||||
const
|
||||
vendorDir = currentSourcePath.parentDir.replace('\\', '/') & "/../../vendor"
|
||||
trustedSetupDir = vendorDir & "/nim-kzg4844/kzg4844/csources/src"
|
||||
trustedSetup = staticRead trustedSetupDir & "/trusted_setup.txt"
|
||||
|
||||
const const_preset = "mainnet"
|
||||
const trustedSetup =
|
||||
when const_preset == "mainnet":
|
||||
staticRead trustedSetupDir & "/trusted_setup.txt"
|
||||
elif const_preset == "minimal":
|
||||
staticRead trustedSetupDir & "/trusted_setup_4.txt"
|
||||
else:
|
||||
""
|
||||
if const_preset == "mainnet" or const_preset == "minimal":
|
||||
Kzg.loadTrustedSetupFromString(trustedSetup)
|
||||
else:
|
||||
ok()
|
||||
Kzg.loadTrustedSetupFromString(trustedSetup)
|
||||
|
Loading…
x
Reference in New Issue
Block a user