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,
|
|
|
|
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),
|
|
|
|
}
|