From 6ef5fd78b7407b8b7b90534eeafcffaff3cea42e Mon Sep 17 00:00:00 2001 From: andri lim Date: Tue, 24 Oct 2023 12:46:33 +0700 Subject: [PATCH] Remove unused trusted setup loading (#1849) --- nimbus/core/eip4844.nim | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/nimbus/core/eip4844.nim b/nimbus/core/eip4844.nim index 60e583bdd..d4ba1ee1a 100644 --- a/nimbus/core/eip4844.nim +++ b/nimbus/core/eip4844.nim @@ -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)