diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectra.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectra.java index eb648a99553..73fd3e8c364 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectra.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectra.java @@ -37,6 +37,8 @@ static SpecConfigElectra required(final SpecConfig specConfig) { int getMaxDepositReceiptsPerPayload(); + int getMaxExecutionLayerExits(); + @Override Optional toVersionElectra(); } diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectraImpl.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectraImpl.java index 9c5b1cc5ecd..3d0ba197b03 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectraImpl.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/SpecConfigElectraImpl.java @@ -24,16 +24,19 @@ public class SpecConfigElectraImpl extends DelegatingSpecConfigDeneb implements private final UInt64 electraForkEpoch; private final int maxDepositReceiptsPerPayload; + private final int maxExecutionLayerExits; public SpecConfigElectraImpl( final SpecConfigDeneb specConfig, final Bytes4 electraForkVersion, final UInt64 electraForkEpoch, - final int maxDepositReceiptsPerPayload) { + final int maxDepositReceiptsPerPayload, + final int maxExecutionLayerExits) { super(specConfig); this.electraForkVersion = electraForkVersion; this.electraForkEpoch = electraForkEpoch; this.maxDepositReceiptsPerPayload = maxDepositReceiptsPerPayload; + this.maxExecutionLayerExits = maxExecutionLayerExits; } @Override @@ -51,6 +54,11 @@ public int getMaxDepositReceiptsPerPayload() { return maxDepositReceiptsPerPayload; } + @Override + public int getMaxExecutionLayerExits() { + return maxExecutionLayerExits; + } + @Override public Optional toVersionElectra() { return Optional.of(this); @@ -68,12 +76,17 @@ public boolean equals(final Object o) { return Objects.equals(specConfig, that.specConfig) && Objects.equals(electraForkVersion, that.electraForkVersion) && Objects.equals(electraForkEpoch, that.electraForkEpoch) - && maxDepositReceiptsPerPayload == that.maxDepositReceiptsPerPayload; + && maxDepositReceiptsPerPayload == that.maxDepositReceiptsPerPayload + && maxExecutionLayerExits == that.maxExecutionLayerExits; } @Override public int hashCode() { return Objects.hash( - specConfig, electraForkVersion, electraForkEpoch, maxDepositReceiptsPerPayload); + specConfig, + electraForkVersion, + electraForkEpoch, + maxDepositReceiptsPerPayload, + maxExecutionLayerExits); } } diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/builder/ElectraBuilder.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/builder/ElectraBuilder.java index e43677deed8..f1ab10bf21b 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/builder/ElectraBuilder.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/builder/ElectraBuilder.java @@ -30,15 +30,19 @@ public class ElectraBuilder implements ForkConfigBuilder