Add committe_len to gRPC parameters

This commit is contained in:
Age Manning 2019-03-31 00:34:35 +11:00
parent 4fb95d06d1
commit ee693fb3e3
No known key found for this signature in database
GPG Key ID: 05EED64B79E06A93
4 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@ use protos::services::{
ProduceAttestationDataResponse, PublishAttestationRequest, PublishAttestationResponse,
};
use protos::services_grpc::AttestationService;
use slog::{error, info, trace, warn, Logger};
use slog::{error, info, trace, warn};
use ssz::{ssz_encode, Decodable};
use std::sync::Arc;
use types::Attestation;

View File

@ -167,6 +167,7 @@ impl ValidatorService for ValidatorServiceInstance {
duty.set_committee_index(attestation_duties.committee_index as u64);
duty.set_attestation_slot(attestation_duties.slot.as_u64());
duty.set_attestation_shard(attestation_duties.shard);
duty.set_committee_len(attestation_duties.committee_len as u64);
active_validator.set_duty(duty);
resp_validators.push(active_validator);

View File

@ -125,6 +125,7 @@ message ValidatorDuty {
uint64 attestation_slot = 3;
uint64 attestation_shard = 4;
uint64 committee_index = 5;
uint64 committee_len = 6;
}
/*

View File

@ -53,7 +53,7 @@ impl BeaconNodeDuties for ValidatorServiceClient {
slot: Slot::from(active_duty.get_attestation_slot()),
shard: active_duty.get_attestation_shard(),
committee_index: active_duty.get_committee_index() as usize,
committee_len: 10,
committee_len: active_duty.get_committee_len() as usize,
};
let epoch_duty = EpochDuty {