Skip to content

Commit

Permalink
Devnet6 - rise blob subnets to 6 (#7253)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr authored Jun 12, 2023
1 parent d23b7f4 commit 3430c15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 3430c15

Please sign in to comment.