node.network.metadata.attnets is only secondary source of truth (#2089)
This commit is contained in:
parent
d16e127daf
commit
2421d338c1
|
@ -429,8 +429,7 @@ proc cycleAttestationSubnets(node: BeaconNode, slot: Slot) =
|
|||
node.attestationSubnets.subscribedSubnets[1] +
|
||||
{node.attestationSubnets.stabilitySubnet.uint8}
|
||||
for subnet in 0'u8 ..< ATTESTATION_SUBNET_COUNT:
|
||||
doAssert node.network.metadata.attnets[subnet] ==
|
||||
(subnet in subscribed_subnets)
|
||||
node.network.metadata.attnets[subnet] = subnet in subscribed_subnets
|
||||
|
||||
proc getAttestationHandlers(node: BeaconNode): Future[void] =
|
||||
var initialSubnets: set[uint8]
|
||||
|
|
Loading…
Reference in New Issue