parent
7e89bab4aa
commit
33d3bfae8b
@ -731,7 +731,7 @@ impl AuthorityRound {
|
|||||||
|
|
||||||
if !epoch_manager.zoom_to_after(&*client, &self.machine, &*self.validators, *header.parent_hash()) {
|
if !epoch_manager.zoom_to_after(&*client, &self.machine, &*self.validators, *header.parent_hash()) {
|
||||||
debug!(target: "engine", "Unable to zoom to epoch.");
|
debug!(target: "engine", "Unable to zoom to epoch.");
|
||||||
return Err(EngineError::RequiresClient.into())
|
return Err(EngineError::MissingParent.into())
|
||||||
}
|
}
|
||||||
|
|
||||||
(CowLike::Owned(epoch_manager.validators().clone()), epoch_manager.epoch_transition_number)
|
(CowLike::Owned(epoch_manager.validators().clone()), epoch_manager.epoch_transition_number)
|
||||||
|
@ -89,6 +89,8 @@ pub enum EngineError {
|
|||||||
InvalidEngine,
|
InvalidEngine,
|
||||||
/// Requires signer ref, but none registered.
|
/// Requires signer ref, but none registered.
|
||||||
RequiresSigner,
|
RequiresSigner,
|
||||||
|
/// Missing Parent Epoch
|
||||||
|
MissingParent,
|
||||||
/// Checkpoint is missing
|
/// Checkpoint is missing
|
||||||
CliqueMissingCheckpoint(H256),
|
CliqueMissingCheckpoint(H256),
|
||||||
/// Missing vanity data
|
/// Missing vanity data
|
||||||
@ -137,6 +139,7 @@ impl fmt::Display for EngineError {
|
|||||||
RequiresClient => format!("Call requires client but none registered"),
|
RequiresClient => format!("Call requires client but none registered"),
|
||||||
RequiresSigner => format!("Call requires signer but none registered"),
|
RequiresSigner => format!("Call requires signer but none registered"),
|
||||||
InvalidEngine => format!("Invalid engine specification or implementation"),
|
InvalidEngine => format!("Invalid engine specification or implementation"),
|
||||||
|
MissingParent => format!("Parent Epoch is missing from database"),
|
||||||
};
|
};
|
||||||
|
|
||||||
f.write_fmt(format_args!("Engine error ({})", msg))
|
f.write_fmt(format_args!("Engine error ({})", msg))
|
||||||
|
Loading…
Reference in New Issue
Block a user