From a315e9da493a0c7d9abab637f4dda7c0c06e0aa4 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Wed, 27 Mar 2019 21:36:06 +1100 Subject: [PATCH] Rename fields in validator client EpochDuties --- validator_client/src/duties/epoch_duties.rs | 6 +++--- validator_client/src/duties/grpc.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/validator_client/src/duties/epoch_duties.rs b/validator_client/src/duties/epoch_duties.rs index de787c4b8e..24b01e620c 100644 --- a/validator_client/src/duties/epoch_duties.rs +++ b/validator_client/src/duties/epoch_duties.rs @@ -17,8 +17,8 @@ pub struct WorkType { #[derive(Debug, PartialEq, Clone, Copy, Default)] pub struct EpochDuty { pub block_production_slot: Option, - pub committee_slot: Slot, - pub committee_shard: u64, + pub attestation_slot: Slot, + pub attestation_shard: u64, pub committee_index: u64, } @@ -32,7 +32,7 @@ impl EpochDuty { }; let mut produce_attestation = false; - if self.committee_slot == slot { + if self.attestation_slot == slot { produce_attestation = true; } diff --git a/validator_client/src/duties/grpc.rs b/validator_client/src/duties/grpc.rs index 32ac86435a..0a4b3dffe3 100644 --- a/validator_client/src/duties/grpc.rs +++ b/validator_client/src/duties/grpc.rs @@ -44,8 +44,8 @@ impl BeaconNode for ValidatorServiceClient { }; let epoch_duty = EpochDuty { block_production_slot, - committee_slot: Slot::from(active_duty.get_committee_slot()), - committee_shard: active_duty.get_committee_shard(), + attestation_slot: Slot::from(active_duty.get_attestation_slot()), + attestation_shard: active_duty.get_attestation_shard(), committee_index: active_duty.get_committee_index(), }; epoch_duties.insert(pubkeys[index].clone(), Some(epoch_duty));