From ac432ac05d9dd365d0edaed87baf56571f9974c4 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 7 Jun 2024 18:38:49 -0400 Subject: [PATCH] Comments, style. --- .../bitcoin/node/impl/chasers/chaser_organize.ipp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/bitcoin/node/impl/chasers/chaser_organize.ipp b/include/bitcoin/node/impl/chasers/chaser_organize.ipp index 346632d4..6577a1ca 100644 --- a/include/bitcoin/node/impl/chasers/chaser_organize.ipp +++ b/include/bitcoin/node/impl/chasers/chaser_organize.ipp @@ -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