mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 21:38:31 +00:00
Remove redundant subscribe_all_data_column_subnets field from network (#8259)
Addresses this comment: https://github.com/sigp/lighthouse/pull/8254#discussion_r2447998786
We're currently using `subscribe_all_data_column_subnets` here to subscribe to all subnets
522bd9e9c6/beacon_node/lighthouse_network/src/types/topics.rs (L82-L92)
But its unnecessary because the else path also works for supernode (uses `sampling_subnets` instead)
The big diffs will disappear once #8254 is merged.
Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -1243,11 +1243,12 @@ mod tests {
|
||||
let config = Arc::new(config);
|
||||
let enr_key: CombinedKey = CombinedKey::from_secp256k1(&keypair);
|
||||
let next_fork_digest = [0; 4];
|
||||
let custody_group_count = spec.custody_requirement;
|
||||
let enr: Enr = build_enr::<E>(
|
||||
&enr_key,
|
||||
&config,
|
||||
&EnrForkId::default(),
|
||||
None,
|
||||
custody_group_count,
|
||||
next_fork_digest,
|
||||
&spec,
|
||||
)
|
||||
@@ -1258,7 +1259,7 @@ mod tests {
|
||||
seq_number: 0,
|
||||
attnets: Default::default(),
|
||||
syncnets: Default::default(),
|
||||
custody_group_count: spec.custody_requirement,
|
||||
custody_group_count,
|
||||
}),
|
||||
vec![],
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user