Fix another off-by-one causing rejected sync contributions at period boundaries

This commit is contained in:
Zahary Karadjov 2022-04-08 14:43:55 +03:00
parent f70ff38b53
commit d450681b15
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609

View File

@ -445,7 +445,7 @@ proc scheduleContributionChecks*(
"SignedContributionAndProof: invalid contribution signature")
contributionKey = ? aggregateAll(
dag, dag.syncCommitteeParticipants(contribution.slot, subcommitteeIdx),
dag, dag.syncCommitteeParticipants(contribution.slot + 1, subcommitteeIdx),
contribution.aggregation_bits)
let
aggregatorFut = batchCrypto.withBatch("scheduleContributionAndProofChecks.aggregator"):