Skip to content

Commit

Permalink
rm web3_consensus_const_preset (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Oct 19, 2023
1 parent ebf4a12 commit 428b931
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions web3/ethtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 428b931

Please sign in to comment.