Remove some unwrap/expect in chain crate (#2621)

* Return Result instead of calling expect in root(). It would kill peer's thread. Perhaps we should ban this peer as malicious.
* Remove some unwraps
This commit is contained in:
hashmap
2019-02-25 06:57:21 +01:00
committed by Ignotus Peverell
parent 2df633b622
commit e71eca1977
5 changed files with 15 additions and 10 deletions
+3
View File
@@ -131,6 +131,9 @@ pub enum ErrorKind {
/// We cannot process data once the Grin server has been stopped.
#[fail(display = "Stopped (Grin Shutting Down)")]
Stopped,
/// Internal Roaring Bitmap error
#[fail(display = "Roaring Bitmap error")]
Bitmap,
}
impl Display for Error {