From ffb29167bc647ce4774b4cae45460b6321a883e7 Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 19 Oct 2023 05:17:48 +0000 Subject: [PATCH] rm web3_consensus_const_preset --- web3/ethtypes.nim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web3/ethtypes.nim b/web3/ethtypes.nim index 89a0e789..e1769b2d 100644 --- a/web3/ethtypes.nim +++ b/web3/ethtypes.nim @@ -6,12 +6,8 @@ export hashes, options, typetraits const - web3_consensus_const_preset* {.strdefine.} = "mainnet" - - # TODO This is not very elegant. Can we make this a run-time choice? - fieldElementsPerBlob = when web3_consensus_const_preset == "minimal": 4 - elif web3_consensus_const_preset == "mainnet": 4096 - else: {.error: "please set 'web3_consensus_const_preset' to either 'mainnet' or 'minimal'".} + # https://github.com/ethereum/execution-apis/blob/c4089414bbbe975bbc4bf1ccf0a3d31f76feb3e1/src/engine/cancun.md#blobsbundlev1 + fieldElementsPerBlob = 4096 type SyncObject* = object