Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm web3_consensus_const_preset #107

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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