node.network.metadata.attnets is only secondary source of truth (#2089)

This commit is contained in:
tersec 2020-11-27 15:54:13 +01:00 committed by GitHub
parent d16e127daf
commit 2421d338c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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]