From bc03e14943d7c70ee8c9240f98a6f0a0f99a4116 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Mon, 13 May 2019 17:21:17 +1000 Subject: [PATCH] validator_client: IndexedAttestation rename --- validator_client/src/attestation_producer/mod.rs | 4 ++-- validator_client/src/block_producer/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/validator_client/src/attestation_producer/mod.rs b/validator_client/src/attestation_producer/mod.rs index d2dbdf2e2..c8c80f78c 100644 --- a/validator_client/src/attestation_producer/mod.rs +++ b/validator_client/src/attestation_producer/mod.rs @@ -52,7 +52,7 @@ impl<'a, B: BeaconNodeAttestation, S: Signer> AttestationProducer<'a, B, S> { Ok(ValidatorEvent::SignerRejection(_slot)) => { error!(log, "Attestation production error"; "Error" => "Signer could not sign the attestation".to_string()) } - Ok(ValidatorEvent::SlashableAttestationNotProduced(_slot)) => { + Ok(ValidatorEvent::IndexedAttestationNotProduced(_slot)) => { error!(log, "Attestation production error"; "Error" => "Rejected the attestation as it could have been slashed".to_string()) } Ok(ValidatorEvent::PublishAttestationFailed) => { @@ -99,7 +99,7 @@ impl<'a, B: BeaconNodeAttestation, S: Signer> AttestationProducer<'a, B, S> { Ok(ValidatorEvent::SignerRejection(self.duty.slot)) } } else { - Ok(ValidatorEvent::SlashableAttestationNotProduced( + Ok(ValidatorEvent::IndexedAttestationNotProduced( self.duty.slot, )) } diff --git a/validator_client/src/block_producer/mod.rs b/validator_client/src/block_producer/mod.rs index 2689b302d..61e9d1a08 100644 --- a/validator_client/src/block_producer/mod.rs +++ b/validator_client/src/block_producer/mod.rs @@ -24,7 +24,7 @@ pub enum ValidatorEvent { /// A block was not produced as it would have been slashable. SlashableBlockNotProduced(Slot), /// An attestation was not produced as it would have been slashable. - SlashableAttestationNotProduced(Slot), + IndexedAttestationNotProduced(Slot), /// The Beacon Node was unable to produce a block at that slot. BeaconNodeUnableToProduceBlock(Slot), /// The signer failed to sign the message.