Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devnet6 - rise blob subnets to 6 #7253

Merged
merged 2 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Constants {
// Deneb
public static final UInt64 MAX_REQUEST_BLOCKS_DENEB = UInt64.valueOf(128);
public static final int MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS = 4096; // ~18 days
public static final int BLOB_SIDECAR_SUBNET_COUNT = 4;
public static final int BLOB_SIDECAR_SUBNET_COUNT = 6;

// Teku Networking Specific
public static final int VALID_BLOCK_SET_SIZE = 1000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;
import static org.mockito.Mockito.when;
import static tech.pegasys.teku.spec.config.Constants.BLOB_SIDECAR_SUBNET_COUNT;

import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -133,8 +134,7 @@ public void testGossipingBlobSidecarWithLargeIndexGossipToCorrectSubnet() {

topicChannels.forEach(
(subnetId, channel) -> {
// 10 % 4 = 2
if (subnetId == 2) {
if (subnetId == 10 % BLOB_SIDECAR_SUBNET_COUNT) {
verify(channel).gossip(serialized);
} else {
verifyNoInteractions(channel);
Expand Down