load Ethereum mainnet KZG setup on Gnosis networks (#5756)
Gnosis networks re-use the trusted setup from Ethereum mainnet. Load it to support Deneb.
This commit is contained in:
parent
2608cd6477
commit
7443a4ac08
|
@ -1483,10 +1483,8 @@ proc loadKzgTrustedSetup*(): Result[void, string] =
|
||||||
trustedSetup = staticRead(
|
trustedSetup = staticRead(
|
||||||
vendorDir & "/nim-kzg4844/kzg4844/csources/src/trusted_setup.txt")
|
vendorDir & "/nim-kzg4844/kzg4844/csources/src/trusted_setup.txt")
|
||||||
|
|
||||||
if const_preset == "mainnet" or const_preset == "minimal":
|
static: doAssert const_preset in ["mainnet", "gnosis", "minimal"]
|
||||||
Kzg.loadTrustedSetupFromString(trustedSetup)
|
Kzg.loadTrustedSetupFromString(trustedSetup)
|
||||||
else:
|
|
||||||
ok()
|
|
||||||
|
|
||||||
proc loadKzgTrustedSetup*(trustedSetupPath: string): Result[void, string] =
|
proc loadKzgTrustedSetup*(trustedSetupPath: string): Result[void, string] =
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -559,7 +559,7 @@ elif const_preset == "minimal":
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
{.error: "Only mainnet and minimal presets supported".}
|
{.error: "Only mainnet, gnosis, and minimal presets supported".}
|
||||||
# macro createConstantsFromPreset*(path: static string): untyped =
|
# macro createConstantsFromPreset*(path: static string): untyped =
|
||||||
# result = newStmtList()
|
# result = newStmtList()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue