File tree Expand file tree Collapse file tree
include/bitcoin/database/impl/query Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments