mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
validator_client: IndexedAttestation rename
This commit is contained in:
@@ -52,7 +52,7 @@ impl<'a, B: BeaconNodeAttestation, S: Signer> AttestationProducer<'a, B, S> {
|
|||||||
Ok(ValidatorEvent::SignerRejection(_slot)) => {
|
Ok(ValidatorEvent::SignerRejection(_slot)) => {
|
||||||
error!(log, "Attestation production error"; "Error" => "Signer could not sign the attestation".to_string())
|
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())
|
error!(log, "Attestation production error"; "Error" => "Rejected the attestation as it could have been slashed".to_string())
|
||||||
}
|
}
|
||||||
Ok(ValidatorEvent::PublishAttestationFailed) => {
|
Ok(ValidatorEvent::PublishAttestationFailed) => {
|
||||||
@@ -99,7 +99,7 @@ impl<'a, B: BeaconNodeAttestation, S: Signer> AttestationProducer<'a, B, S> {
|
|||||||
Ok(ValidatorEvent::SignerRejection(self.duty.slot))
|
Ok(ValidatorEvent::SignerRejection(self.duty.slot))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Ok(ValidatorEvent::SlashableAttestationNotProduced(
|
Ok(ValidatorEvent::IndexedAttestationNotProduced(
|
||||||
self.duty.slot,
|
self.duty.slot,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ pub enum ValidatorEvent {
|
|||||||
/// A block was not produced as it would have been slashable.
|
/// A block was not produced as it would have been slashable.
|
||||||
SlashableBlockNotProduced(Slot),
|
SlashableBlockNotProduced(Slot),
|
||||||
/// An attestation was not produced as it would have been slashable.
|
/// 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.
|
/// The Beacon Node was unable to produce a block at that slot.
|
||||||
BeaconNodeUnableToProduceBlock(Slot),
|
BeaconNodeUnableToProduceBlock(Slot),
|
||||||
/// The signer failed to sign the message.
|
/// The signer failed to sign the message.
|
||||||
|
|||||||
Reference in New Issue
Block a user