@@ -45,15 +45,15 @@ CLASS::hash_option CLASS::create_interval(header_link link,
4545 return {};
4646
4747 // Generate the leaf nodes for the span.
48- hashes leaves (span);
49- for (auto & leaf: std::views::reverse (leaves ))
48+ hashes leafs (span);
49+ for (auto & leaf: std::views::reverse (leafs ))
5050 {
5151 leaf = get_header_key (link);
5252 link = to_parent (link);
5353 }
5454
5555 // Generate the merkle root of the interval ending on link header.
56- return system::merkle_root (std::move (leaves ));
56+ return system::merkle_root (std::move (leafs ));
5757}
5858
5959// protected
@@ -165,8 +165,8 @@ code CLASS::get_merkle_subroots(hashes& roots, size_t waypoint) const NOEXCEPT
165165 BC_ASSERT (!is_zero (span));
166166
167167 // Roots is even-size-except-one-reserved for merkle root push.
168- const auto leaves = add1 (waypoint);
169- const auto limit = system::ceilinged_divide (leaves , span);
168+ const auto leafs = add1 (waypoint);
169+ const auto limit = system::ceilinged_divide (leafs , span);
170170 const auto count = limit + to_int<size_t >(!is_one (limit) && is_odd (limit));
171171 roots.reserve (count);
172172
@@ -179,7 +179,7 @@ code CLASS::get_merkle_subroots(hashes& roots, size_t waypoint) const NOEXCEPT
179179 // //std::cout << "reserve : " << count << std::endl;
180180
181181 // Either all subroots elevated to same level, or there is a single root.
182- for (size_t first{}; first < leaves ; first += span)
182+ for (size_t first{}; first < leafs ; first += span)
183183 {
184184 const auto last = std::min (sub1 (first + span), waypoint);
185185 const auto size = add1 (last - first);
0 commit comments