mirror of
https://github.com/pezkuwichain/merkle-mountain-range.git
synced 2026-04-29 00:57:59 +00:00
Init merkle-mountain-range
The MMR code is copy from https://github.com/nervosnetwork/ckb/pull/1598
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
pub use failure::Fail;
|
||||
pub type Result<T> = ::std::result::Result<T, Error>;
|
||||
|
||||
#[derive(Fail, Debug, PartialEq, Eq, Clone)]
|
||||
pub enum Error {
|
||||
#[fail(display = "Get root on an empty MMR")]
|
||||
GetRootOnEmpty,
|
||||
#[fail(display = "Inconsistent store")]
|
||||
InconsistentStore,
|
||||
#[fail(display = "Store error {}", _0)]
|
||||
StoreError(String),
|
||||
}
|
||||
Reference in New Issue
Block a user