diff --git a/validator_client/src/duties/epoch_duties.rs b/validator_client/src/duties/epoch_duties.rs index de787c4b8..24b01e620 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 32ac86435..0a4b3dffe 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));