mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Change GetValidatorParticipation to compute participation from previous epoch (#3988)
* Change ComputeValidatorParticipation to allow previous and current epoch * Change archive saving back to previous * Fix forkchoice usage * whoopsies
This commit is contained in:
committed by
Raul Jordan
parent
6ae829a555
commit
8ba6c84d6b
@@ -109,7 +109,11 @@ func compareHeads(clients map[string]pb.BeaconChainClient) {
|
||||
logHead(endpt2, head2)
|
||||
|
||||
if (head1.BlockSlot+1)%params.BeaconConfig().SlotsPerEpoch == 0 {
|
||||
p, err := clients[endpt2].GetValidatorParticipation(context.Background(), &pb.GetValidatorParticipationRequest{})
|
||||
p, err := clients[endpt2].GetValidatorParticipation(context.Background(), &pb.GetValidatorParticipationRequest{
|
||||
QueryFilter: &pb.GetValidatorParticipationRequest_Epoch{
|
||||
Epoch: head2.BlockSlot / params.BeaconConfig().SlotsPerEpoch,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user