Description
Description
Lighthouse under-subscribes attestation subnets for aggregation. Initially, I compared Grandine's and Lighthouse's networking behavior and found that Lighthouse stops subscribing to attestation subnets for aggregation completely. This was fixed by #6682 . However, even after this fix Lighthouse subscribes to significantly fewer number of attestations subnets.
Version
The problem appears in 6.0.1 version.
Present Behaviour
6.0.1 version still subscribes to significantly fewer number of attestations subnets. A validator does not get directly penalized for it. However, this leads to a worse overall quality of aggregates in the network.
Expected Behaviour
It should subscribe to the correct list of attestation subnets.
Steps to resolve
The easiest way to debug and fix it would be to print the subscription events in both 5.3 and 6.0.1 Lighthouse BN nodes behind Vouch with a large number of validators (I used 30K). And compare the difference of the behavior.
The image shows 6.0.1 at the first half and reverted 5.3 in the second half: