diff --git a/src/bridgetree.rs b/src/bridgetree.rs index c5ede35..0f840fb 100644 --- a/src/bridgetree.rs +++ b/src/bridgetree.rs @@ -61,7 +61,7 @@ impl Position { /// an authentication path to the root of a merkle tree that has `self + 1` /// nodes. pub fn altitudes_required(&self) -> impl Iterator + '_ { - (0..=(self.max_altitude() + 1).0) + (0..=self.max_altitude().0) .into_iter() .filter_map(move |i| { if self.0 == 0 || self.0 & (1 << i) == 0 {