lighthouse/eth2/utils/cached_tree_hash/src/errors.rs

19 lines
458 B
Rust
Raw Normal View History

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