mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
add versiotToForkEpoch map (#15482)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user