Skip to content

Commit

Permalink
remove target blob count
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Dec 16, 2024
1 parent e645de9 commit 9c8b6a9
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"MIN_SLASHING_PENALTY_QUOTIENT" : "128",
"MAX_BLS_TO_EXECUTION_CHANGES" : "16",
"GOSSIP_MAX_SIZE" : "10485760",
"TARGET_BLOBS_PER_BLOCK_ELECTRA" : "3",
"DOMAIN_BEACON_ATTESTER" : "0x01000000",
"EPOCHS_PER_SUBNET_SUBSCRIPTION" : "256",
"PENDING_DEPOSITS_LIMIT" : "134217728",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ public int getMaxBlobsPerBlock() {
return specConfigDeneb.getMaxBlobsPerBlock();
}

@Override
public int getTargetBlobsPerBlock() {
return specConfigDeneb.getTargetBlobsPerBlock();
}

@Override
public int getKzgCommitmentInclusionProofDepth() {
return specConfigDeneb.getKzgCommitmentInclusionProofDepth();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ static SpecConfigDeneb required(final SpecConfig specConfig) {

int getMaxBlobsPerBlock();

int getTargetBlobsPerBlock();

int getKzgCommitmentInclusionProofDepth();

int getEpochsStoreBlobs();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ public int getMaxBlobsPerBlock() {
return maxBlobsPerBlock;
}

@Override
public int getTargetBlobsPerBlock() {
return maxBlobsPerBlock / 2;
}

@Override
public int getKzgCommitmentInclusionProofDepth() {
return kzgCommitmentInclusionProofDepth;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class SpecConfigElectraImpl extends DelegatingSpecConfigDeneb implements
private final int maxPendingPartialsPerWithdrawalsSweep;
private final int maxPendingDepositsPerEpoch;
private final int maxBlobsPerBlockElectra;
private final int targetBlobsPerBlockElectra;
private final int maxRequestBlobSidecarsElectra;
private final int blobSidecarSubnetCountElectra;

Expand All @@ -65,7 +64,6 @@ public SpecConfigElectraImpl(
final int maxPendingPartialsPerWithdrawalsSweep,
final int maxPendingDepositsPerEpoch,
final int maxBlobsPerBlockElectra,
final int targetBlobsPerBlockElectra,
final int maxRequestBlobSidecarsElectra,
final int blobSidecarSubnetCountElectra) {
super(specConfig);
Expand All @@ -87,7 +85,6 @@ public SpecConfigElectraImpl(
this.maxPendingPartialsPerWithdrawalsSweep = maxPendingPartialsPerWithdrawalsSweep;
this.maxPendingDepositsPerEpoch = maxPendingDepositsPerEpoch;
this.maxBlobsPerBlockElectra = maxBlobsPerBlockElectra;
this.targetBlobsPerBlockElectra = targetBlobsPerBlockElectra;
this.maxRequestBlobSidecarsElectra = maxRequestBlobSidecarsElectra;
this.blobSidecarSubnetCountElectra = blobSidecarSubnetCountElectra;
}
Expand Down Expand Up @@ -182,11 +179,6 @@ public int getMaxBlobsPerBlock() {
return maxBlobsPerBlockElectra;
}

@Override
public int getTargetBlobsPerBlock() {
return targetBlobsPerBlockElectra;
}

@Override
public int getBlobSidecarSubnetCount() {
return blobSidecarSubnetCountElectra;
Expand Down Expand Up @@ -235,7 +227,6 @@ public boolean equals(final Object o) {
&& maxPendingPartialsPerWithdrawalsSweep == that.maxPendingPartialsPerWithdrawalsSweep
&& maxPendingDepositsPerEpoch == that.maxPendingDepositsPerEpoch
&& maxBlobsPerBlockElectra == that.maxBlobsPerBlockElectra
&& targetBlobsPerBlockElectra == that.targetBlobsPerBlockElectra
&& maxRequestBlobSidecarsElectra == that.maxRequestBlobSidecarsElectra
&& blobSidecarSubnetCountElectra == that.blobSidecarSubnetCountElectra;
}
Expand All @@ -262,7 +253,6 @@ public int hashCode() {
maxPendingPartialsPerWithdrawalsSweep,
maxPendingDepositsPerEpoch,
maxBlobsPerBlockElectra,
targetBlobsPerBlockElectra,
maxRequestBlobSidecarsElectra,
blobSidecarSubnetCountElectra);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public class ElectraBuilder implements ForkConfigBuilder<SpecConfigDeneb, SpecCo
private Integer maxPendingPartialsPerWithdrawalsSweep;
private Integer maxPendingDepositsPerEpoch;
private Integer maxBlobsPerBlockElectra;
private Integer targetBlobsPerBlockElectra;
private Integer maxRequestBlobSidecarsElectra;
private Integer blobSidecarSubnetCountElectra;

Expand Down Expand Up @@ -79,7 +78,6 @@ public SpecConfigAndParent<SpecConfigElectra> build(
maxPendingPartialsPerWithdrawalsSweep,
maxPendingDepositsPerEpoch,
maxBlobsPerBlockElectra,
targetBlobsPerBlockElectra,
maxRequestBlobSidecarsElectra,
blobSidecarSubnetCountElectra),
specConfigAndParent);
Expand Down Expand Up @@ -199,12 +197,6 @@ public ElectraBuilder maxBlobsPerBlockElectra(final Integer maxBlobsPerBlockElec
return this;
}

public ElectraBuilder targetBlobsPerBlockElectra(final Integer targetBlobsPerBlockElectra) {
checkNotNull(targetBlobsPerBlockElectra);
this.targetBlobsPerBlockElectra = targetBlobsPerBlockElectra;
return this;
}

public ElectraBuilder maxRequestBlobSidecarsElectra(final Integer maxRequestBlobSidecarsElectra) {
checkNotNull(maxRequestBlobSidecarsElectra);
this.maxRequestBlobSidecarsElectra = maxRequestBlobSidecarsElectra;
Expand Down Expand Up @@ -254,7 +246,6 @@ public Map<String, Object> getValidationMap() {
constants.put("maxPendingPartialsPerWithdrawalsSweep", maxPendingPartialsPerWithdrawalsSweep);
constants.put("maxPendingDepositsPerEpoch", maxPendingDepositsPerEpoch);
constants.put("maxBlobsPerBlockElectra", maxBlobsPerBlockElectra);
constants.put("targetBlobsPerBlockElectra", targetBlobsPerBlockElectra);
constants.put("maxRequestBlobSidecarsElectra", maxRequestBlobSidecarsElectra);
constants.put("blobSidecarSubnetCountElectra", blobSidecarSubnetCountElectra);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,5 @@ MAX_REQUEST_BLOB_SIDECARS: 768
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,5 @@ MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 256000000000
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,5 @@ MAX_REQUEST_BLOB_SIDECARS: 768
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,5 @@ MAX_REQUEST_BLOB_SIDECARS: 768
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,5 @@ MAX_REQUEST_BLOB_SIDECARS: 768
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,5 @@ MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 256000000000
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,5 @@ MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 256000000000
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,5 @@ MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 128000000000
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,5 @@ MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 256000000000
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,5 @@ MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 128000000000
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public void shouldOverrideBlobRelatedValuesValues() {
b.electraBuilder(
eb ->
eb.maxBlobsPerBlockElectra(8)
.targetBlobsPerBlockElectra(5)
.blobSidecarSubnetCountElectra(10)
.maxRequestBlobSidecarsElectra(13));
});
Expand All @@ -87,12 +86,10 @@ public void shouldOverrideBlobRelatedValuesValues() {
specConfigAndParent.forMilestone(SpecMilestone.ELECTRA).toVersionDeneb().orElseThrow();

assertThat(denebConfig.getMaxBlobsPerBlock()).isEqualTo(4);
assertThat(denebConfig.getTargetBlobsPerBlock()).isEqualTo(2);
assertThat(denebConfig.getBlobSidecarSubnetCount()).isEqualTo(8);
assertThat(denebConfig.getMaxRequestBlobSidecars()).isEqualTo(16);

assertThat(electraConfig.getMaxBlobsPerBlock()).isEqualTo(8);
assertThat(electraConfig.getTargetBlobsPerBlock()).isEqualTo(5);
assertThat(electraConfig.getBlobSidecarSubnetCount()).isEqualTo(10);
assertThat(electraConfig.getMaxRequestBlobSidecars()).isEqualTo(13);
}
Expand Down Expand Up @@ -140,7 +137,6 @@ private SpecConfigElectra createRandomElectraConfig(
dataStructureUtil.randomPositiveInt(8),
dataStructureUtil.randomPositiveInt(16),
dataStructureUtil.randomPositiveInt(8),
dataStructureUtil.randomPositiveInt(4),
dataStructureUtil.randomPositiveInt(1024),
dataStructureUtil.randomPositiveInt(8)) {};
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,5 @@ MAX_REQUEST_BLOB_SIDECARS: 768
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 9
# `uint64(9)`
MAX_BLOBS_PER_BLOCK_ELECTRA: 9
# `uint64(6)`
TARGET_BLOBS_PER_BLOCK_ELECTRA: 6
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152

0 comments on commit 9c8b6a9

Please sign in to comment.