mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
@@ -156,10 +156,7 @@ impl MerkleTree {
|
||||
|
||||
/// Is this Merkle tree a leaf?
|
||||
pub fn is_leaf(&self) -> bool {
|
||||
match self {
|
||||
MerkleTree::Leaf(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, MerkleTree::Leaf(_))
|
||||
}
|
||||
|
||||
/// Return the leaf at `index` and a Merkle proof of its inclusion.
|
||||
|
||||
Reference in New Issue
Block a user