Skip to content

Commit 0d0533a

Browse files
committed
Comments on disabled assertions.
1 parent 50ec4e4 commit 0d0533a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

include/bitcoin/database/impl/query/consensus/consensus_populate.ipp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ bool CLASS::populate_with_metadata(const input& input,
8181

8282
// If read via the store for store confirmation, then...
8383
// input.metadata.point_link is set earlier in get_input().
84+
// So this assertion no longer holds.
8485
////BC_ASSERT(input.metadata.point_link == max_uint32);
8586

8687
if (input.prevout)

include/bitcoin/database/tables/caches/prevout.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ struct prevout
5454
static constexpr tx::integer merge(
5555
const system::chain::prevout& metadata) NOEXCEPT
5656
{
57-
//BC_ASSERT((metadata.parent_tx == max_uint32) ==
58-
// (metadata.point_link == max_uint32));
57+
// input.metadata.point_link is always set in get_input(), so this
58+
// assertion no longer holds.
59+
////BC_ASSERT((metadata.parent_tx == max_uint32) ==
60+
//// (metadata.point_link == max_uint32));
5961

6062
// parent_tx metadata default (max) implies block-internal spend.
6163
return metadata.parent_tx == max_uint32 ? tx::terminal :

0 commit comments

Comments
 (0)