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:
Raul Jordan
2019-09-23 10:47:34 -05:00
committed by GitHub
parent 4e6ed2744d
commit 64795bd231
25 changed files with 1049 additions and 417 deletions

View File

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