From 77886096f584d7d0e4d3ad37a9d7e7927e6cd05c Mon Sep 17 00:00:00 2001 From: evoskuil Date: Wed, 15 Apr 2026 21:21:57 -0400 Subject: [PATCH] Update test blocks (consistent confirmed state). --- test/mocks/blocks.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/mocks/blocks.cpp b/test/mocks/blocks.cpp index fa786bdb..4e7474c6 100644 --- a/test/mocks/blocks.cpp +++ b/test/mocks/blocks.cpp @@ -89,8 +89,8 @@ bool setup_three_block_store(query_t& query) NOEXCEPT return query.initialize(genesis) && query.set(block1, database::context{ 0, 1, 0 }, false, false) && query.set(block2, database::context{ 0, 2, 0 }, false, false) && - query.push_confirmed(query.to_header(block1_hash), false) && - query.push_confirmed(query.to_header(block2_hash), false); + query.push_confirmed(query.to_header(block1_hash), true) && + query.push_confirmed(query.to_header(block2_hash), true); } bool setup_three_block_witness_store(query_t& query) NOEXCEPT @@ -98,8 +98,8 @@ bool setup_three_block_witness_store(query_t& query) NOEXCEPT return query.initialize(genesis) && query.set(block1a, database::context{ 0, 1, 0 }, false, false) && query.set(block2a, database::context{ 0, 2, 0 }, false, false) && - query.push_confirmed(query.to_header(block1a.hash()), false) && - query.push_confirmed(query.to_header(block2a.hash()), false); + query.push_confirmed(query.to_header(block1a.hash()), true) && + query.push_confirmed(query.to_header(block2a.hash()), true); } bool setup_three_block_confirmed_address_store(query_t& query) NOEXCEPT