Remove obsolete file

This commit is contained in:
Aleksei Sidorov 2018-03-12 15:42:49 +03:00
parent f120076cab
commit 89f6e80596
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
#[derive(Debug, PartialEq)]
pub enum Error {
/// Low level database error
DatabaseError(String),
/// Invalid block
CannotCanonize,
/// Uknown parent
UnknownParent,
/// Ancient fork
AncientFork,
}
impl From<Error> for String {
fn from(e: Error) -> String {
match e {
Error::DatabaseError(s) => format!("Database error: {}", s),
Error::CannotCanonize => "Cannot canonize block".into(),
Error::UnknownParent => "Block parent is unknown".into(),
Error::AncientFork => "Fork is too long to proceed".into(),
}
}
}