Skip to content

Commit

Permalink
Comments, style.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jun 7, 2024
1 parent badbb42 commit ac432ac
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/bitcoin/node/impl/chasers/chaser_organize.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,18 @@ database::header_link CLASS::push(const Block& block,
context.median_time_past,
});

return query.push_candidate(link) ? link : database::header_link{};
// TODO: differentiate for headers/blocks, handle malleable.
// TODO: create additional header states for this: set_block_checkpoint and
// TODO: set_block_milestone. Both can return bypass and therefore require
// TODO: mutability checks, and there is no other issue (set_block_bypass).
////if (is_bypassed(context.height) &&
//// !query.set_block_confirmable(link, uint64_t{}))
//// return {};

if (!query.push_candidate(link))
return {};

return link;
}

TEMPLATE
Expand Down

0 comments on commit ac432ac

Please sign in to comment.