pub fn is_bad_block(&self) -> bool {
		// shorter to match on all the "not the block's fault" errors
		match *self {
			Error::Unfit(_) |
				Error::Orphan |
				Error::StoreErr(_, _) |
				Error::SerErr(_) |
				Error::SumTreeErr(_)|
				Error::GenesisBlockRequired |
				Error::Other(_) => false,
			_ => true,
		}
	}
/// Whether the error is due to a block that was intrinsically wrong
Whether the error is due to a block that was intrinsically wrong
Whether the error is due to a block that was intrinsically wrong
pub fn is_bad_block(&self) -> bool {
		// shorter to match on all the "not the block's fault" errors
		match *self {
			Error::Unfit(_) |
				Error::Orphan |
				Error::StoreErr(_, _) |
				Error::SerErr(_) |
				Error::SumTreeErr(_)|
				Error::GenesisBlockRequired |
				Error::Other(_) => false,
			_ => true,
		}
	}
pub fn is_bad_block ( & self ) -> bool { // shorter to match on all the "not the block's fault" errors match * self { Error :: Unfit ( _ ) | Error :: Orphan | Error :: StoreErr ( _ , _ ) | Error :: SerErr ( _ ) | Error :: SumTreeErr ( _ ) | Error :: GenesisBlockRequired | Error :: Other ( _ ) => false , _ => true , } }
Whether the error is due to a block that was intrinsically wrong
Whether the error is due to a block that was intrinsically wrong
&self