Skip to content

Commit

Permalink
Merge pull request #406 from evoskuil/master
Browse files Browse the repository at this point in the history
Remove extraneous comma, style.
  • Loading branch information
evoskuil authored Feb 27, 2024
2 parents 0674cb0 + 363e2ef commit 210f4b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/bitcoin/database/impl/query/initialize.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,20 @@ context_map CLASS::get_all_unassociated_above(size_t height) const NOEXCEPT
{
context_map out{};
const auto top = get_top_candidate();
table::header::get_check_context context{};
while (height < top)
while (++height <= top)
{
const auto header_fk = to_candidate(++height);
const auto header_fk = to_candidate(height);
if (!is_associated(header_fk))
{
table::header::get_check_context context{};
if (store_.header.get(header_fk, context))
{
out.emplace(context.key, system::chain::context
{
context.ctx.flags,
context.timestamp,
context.ctx.mtp,
system::possible_wide_cast<size_t>(context.ctx.height),
system::possible_wide_cast<size_t>(context.ctx.height)

////// HACK: overloading minimum_block_version (unused).
////header_fk
Expand Down

0 comments on commit 210f4b2

Please sign in to comment.