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()
|
||||
|
|
Loading…
Reference in New Issue