From 6b3c8162b31e28011040b935afd57e1130480e8d Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 21 Jun 2024 22:16:40 -0400 Subject: [PATCH] Fix headers-first milestone setter. --- include/bitcoin/node/impl/chasers/chaser_organize.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bitcoin/node/impl/chasers/chaser_organize.ipp b/include/bitcoin/node/impl/chasers/chaser_organize.ipp index 39f5d025..f9a1fc91 100644 --- a/include/bitcoin/node/impl/chasers/chaser_organize.ipp +++ b/include/bitcoin/node/impl/chasers/chaser_organize.ipp @@ -576,7 +576,7 @@ code CLASS::push_block(const Block& block, const system::chain::context& ctx) const NOEXCEPT { // set_code invokes set_strong when checked. - const auto milestone = is_under_checkpoint(ctx.height); + const auto milestone = is_under_milestone(ctx.height); const auto checked = is_block() && is_under_checkpoint(ctx.height); auto& query = archive();