mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Utilize Archived Data in GetValidatorParticipation RPC Server (#3526)
* archive participation begin implementation * validator participation compute * comments * compute participation common func * full test for archiving data * gazelle * complete tests * gaz * remove double negative grammar in comment * use archive in rpc * uses the archive! * error if nothing found in archive * comment * use head fetcher and root * tests pass * archive active set changes appropriately * archive committees * archive info * done with committee info archiving * archived set changes stored * fix build * test for archive balances and active indices * further abstractions * only archive epoch end * tests all pass * tests pass now * archive done * test for activated validators * tests for exited * amend message * use different proto * finalization fetcher * gaz * use root * use ctx * use new ethapis * use proper hash * match apis compatibility * match apis * properly use participation * fix tests * use right commit
This commit is contained in:
@@ -95,7 +95,7 @@ func compareHeads(clients map[string]pb.BeaconChainClient) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
logParticipation(endpt1, p)
|
||||
logParticipation(endpt1, p.Participation)
|
||||
}
|
||||
|
||||
for endpt2, client := range clients {
|
||||
@@ -113,7 +113,7 @@ func compareHeads(clients map[string]pb.BeaconChainClient) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
logParticipation(endpt2, p)
|
||||
logParticipation(endpt2, p.Participation)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -134,8 +134,6 @@ func logHead(endpt string, head *pb.ChainHead) {
|
||||
func logParticipation(endpt string, p *pb.ValidatorParticipation) {
|
||||
log.WithFields(
|
||||
logrus.Fields{
|
||||
"Finalized": p.Finalized,
|
||||
"Epoch": p.Epoch,
|
||||
"VotedEther": p.VotedEther,
|
||||
"TotalEther": p.EligibleEther,
|
||||
"ParticipationRate": p.GlobalParticipationRate,
|
||||
|
||||
Reference in New Issue
Block a user