Skip to content

Commit 7e4f9ed

Browse files
committed
Line length.
1 parent ebdf6f5 commit 7e4f9ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/bitcoin/database/impl/query/merkle.ipp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,16 @@ code CLASS::get_merkle_subroots(hashes& roots, size_t waypoint) const NOEXCEPT
167167
// Roots is even-size-except-one-reserved for merkle root push.
168168
const auto leaves = add1(waypoint);
169169
const auto limit = system::ceilinged_divide(leaves, span);
170-
const auto reserve = limit + to_int<size_t>(!is_one(limit) && is_odd(limit));
171-
roots.reserve(reserve);
170+
const auto count = limit + to_int<size_t>(!is_one(limit) && is_odd(limit));
171+
roots.reserve(count);
172172

173173
//// const auto config = system::ceilinged_log2(span);
174174
////std::cout << "==================================" << std::endl;
175175
////std::cout << "config : " << config << std::endl;
176176
////std::cout << "span : " << span << std::endl;
177177
////std::cout << "leaves : " << leaves << std::endl;
178178
////std::cout << "waypoint : " << waypoint << std::endl;
179-
////std::cout << "reserve : " << reserve << std::endl;
179+
////std::cout << "reserve : " << count << std::endl;
180180

181181
// Either all subroots elevated to same level, or there is a single root.
182182
for (size_t first{}; first < leaves; first += span)

0 commit comments

Comments
 (0)