mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 18:04:18 +00:00
Fulu update to spec v1.6.0-alpha.4 (#7890)
Fulu update to spec [v1.6.0-alpha.4](https://github.com/ethereum/consensus-specs/releases/tag/v1.6.0-alpha.4). - Make `number_of_columns` a preset - Optimise `get_custody_groups` to avoid computing if cgc = 128 - Add support for additional typenum values in type_dispatch macro
This commit is contained in:
@@ -167,10 +167,12 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
let subnets_by_custody_group = if network_globals.spec.is_peer_das_scheduled() {
|
||||
(0..network_globals.spec.number_of_custody_groups)
|
||||
.map(|custody_index| {
|
||||
let subnets =
|
||||
compute_subnets_from_custody_group(custody_index, &network_globals.spec)
|
||||
.expect("Should compute subnets for all custody groups")
|
||||
.collect();
|
||||
let subnets = compute_subnets_from_custody_group::<E>(
|
||||
custody_index,
|
||||
&network_globals.spec,
|
||||
)
|
||||
.expect("Should compute subnets for all custody groups")
|
||||
.collect();
|
||||
(custody_index, subnets)
|
||||
})
|
||||
.collect::<HashMap<_, Vec<DataColumnSubnetId>>>()
|
||||
|
||||
Reference in New Issue
Block a user