From b758831d078f8546df53b8866196c341f66160ac Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 8 May 2026 00:22:05 -0400 Subject: [PATCH] Remove misplaced assertion in populate_with_metadata(input). --- .../database/impl/query/consensus/consensus_populate.ipp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/bitcoin/database/impl/query/consensus/consensus_populate.ipp b/include/bitcoin/database/impl/query/consensus/consensus_populate.ipp index 632ef509d..d2c6f83f5 100644 --- a/include/bitcoin/database/impl/query/consensus/consensus_populate.ipp +++ b/include/bitcoin/database/impl/query/consensus/consensus_populate.ipp @@ -79,8 +79,9 @@ bool CLASS::populate_with_metadata(const input& input, // Null point would return nullptr and be interpreted as missing. BC_ASSERT(!input.point().is_null()); - // input.metadata.point_link must be defaulted to max_uint32. - BC_ASSERT(input.metadata.point_link == max_uint32); + // If read via the store for store confirmation, then... + // input.metadata.point_link is set earlier in get_input(). + ////BC_ASSERT(input.metadata.point_link == max_uint32); if (input.prevout) return true; @@ -132,9 +133,6 @@ bool CLASS::populate_with_metadata(const input& input, } } - // If read via the store for store confirmation, then... - // input.metadata.point_link must be set earlier in get_input(). - ////BC_ASSERT(input.metadata.point_link != max_uint32); return !is_null(input.prevout); }