mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-11-02 04:17:02 +00:00
more clear leaf_count
This commit is contained in:
@@ -29,7 +29,7 @@ impl Entry {
|
|||||||
|
|
||||||
/// Number of leaves under this node.
|
/// Number of leaves under this node.
|
||||||
pub fn leaf_count(&self) -> u64 {
|
pub fn leaf_count(&self) -> u64 {
|
||||||
self.data.end_height - self.data.start_height + 1
|
self.data.end_height - (self.data.start_height - 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Is this node a leaf.
|
/// Is this node a leaf.
|
||||||
|
|||||||
Reference in New Issue
Block a user