add versiotToForkEpoch map (#15482)

This commit is contained in:
Bastin
2025-07-10 14:57:28 +02:00
committed by GitHub
parent 288b33750d
commit 68d7df0e4f
4 changed files with 17 additions and 19 deletions

View File

@@ -316,6 +316,17 @@ type BeaconChainConfig struct {
DeprecatedMaxBlobsPerBlockFulu int `yaml:"MAX_BLOBS_PER_BLOCK_FULU" spec:"true"`
}
func (b *BeaconChainConfig) VersionToForkEpochMap() map[int]primitives.Epoch {
return map[int]primitives.Epoch{
version.Altair: b.AltairForkEpoch,
version.Bellatrix: b.BellatrixForkEpoch,
version.Capella: b.CapellaForkEpoch,
version.Deneb: b.DenebForkEpoch,
version.Electra: b.ElectraForkEpoch,
version.Fulu: b.FuluForkEpoch,
}
}
func (b *BeaconChainConfig) ExecutionRequestLimits() enginev1.ExecutionRequestLimits {
return enginev1.ExecutionRequestLimits{
Deposits: b.MaxDepositRequestsPerPayload,