Advertise --advertise-false-custody-group-count for testing PeerDAS (#7593)

#6973
This commit is contained in:
Jimmy Chen
2025-06-16 12:10:28 +01:00
committed by GitHub
parent 6135f417a2
commit 3d2d65bf8d
9 changed files with 67 additions and 40 deletions

View File

@@ -767,7 +767,14 @@ impl<T: BeaconChainTypes> NetworkService<T> {
// subscribe to `sampling_count` subnets
self.libp2p
.subscribe_new_data_column_subnets(sampling_count);
self.libp2p.update_enr_cgc(new_custody_group_count);
if self
.network_globals
.config
.advertise_false_custody_group_count
.is_none()
{
self.libp2p.update_enr_cgc(new_custody_group_count);
}
}
}
}