From 2fff2ca38f3e0ec162b198afeab6f6cabf7c31af Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Wed, 18 Sep 2024 13:30:14 +0530 Subject: [PATCH] enable subnet sampling --- beacon_chain/nimbus_beacon_node.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 3b0b2e228..38a083eec 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -1151,7 +1151,9 @@ proc addDenebMessageHandlers( node.addCapellaMessageHandlers(forkDigest, slot) let targetSubnets = node.fetchCustodySubnetCount() - custody_subnets = node.network.nodeId.get_custody_column_subnets(targetSubnets) + custody_subnets = + node.network.nodeId.get_custody_column_subnets(max(SAMPLES_PER_SLOT.uint64, + targetSubnets)) debugEcho "Target Subnets" debugEcho targetSubnets