Skip to content

Commit

Permalink
Use MAX_BLOBS_PER_BLOCK from config in gossip validation
Browse files Browse the repository at this point in the history
Start phasing out the compile-time `MAX_BLOBS_PER_BLOCK` and use the
value from the network config in gossip validation instead.
  • Loading branch information
etan-status committed Feb 25, 2025
1 parent 0a676da commit 0a13621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_chain/gossip_processing/gossip_validation.nim
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func getMaxBlobsPerBlock(cfg: RuntimeConfig, slot: Slot): uint64 =
if slot >= cfg.ELECTRA_FORK_EPOCH.start_slot:
cfg.MAX_BLOBS_PER_BLOCK_ELECTRA
else:
MAX_BLOBS_PER_BLOCK
cfg.MAX_BLOBS_PER_BLOCK

template validateBeaconBlockBellatrix(
_: phase0.SignedBeaconBlock | altair.SignedBeaconBlock,
Expand Down

0 comments on commit 0a13621

Please sign in to comment.