2019-04-25 23:55:03 +00:00
|
|
|
use tree_hash::TreeHashType;
|
|
|
|
|
|
|
|
#[derive(Debug, PartialEq, Clone)]
|
|
|
|
pub enum Error {
|
|
|
|
ShouldNotProduceBTreeOverlay,
|
|
|
|
NoFirstNode,
|
|
|
|
NoBytesForRoot,
|
|
|
|
UnableToObtainSlices,
|
|
|
|
UnableToGrowMerkleTree,
|
|
|
|
UnableToShrinkMerkleTree,
|
|
|
|
TreeCannotHaveZeroNodes,
|
2019-04-27 09:02:52 +00:00
|
|
|
CacheNotInitialized,
|
2019-04-25 23:55:03 +00:00
|
|
|
ShouldNeverBePacked(TreeHashType),
|
|
|
|
BytesAreNotEvenChunks(usize),
|
|
|
|
NoModifiedFieldForChunk(usize),
|
|
|
|
NoBytesForChunk(usize),
|
2019-04-26 01:55:26 +00:00
|
|
|
NoSchemaForIndex(usize),
|
2019-04-25 23:55:03 +00:00
|
|
|
NotLeafNode(usize),
|
|
|
|
}
|