Skip to content

Commit b758831

Browse files
committed
Remove misplaced assertion in populate_with_metadata(input).
1 parent 18710d1 commit b758831

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ bool CLASS::populate_with_metadata(const input& input,
7979
// Null point would return nullptr and be interpreted as missing.
8080
BC_ASSERT(!input.point().is_null());
8181

82-
// input.metadata.point_link must be defaulted to max_uint32.
83-
BC_ASSERT(input.metadata.point_link == max_uint32);
82+
// If read via the store for store confirmation, then...
83+
// input.metadata.point_link is set earlier in get_input().
84+
////BC_ASSERT(input.metadata.point_link == max_uint32);
8485

8586
if (input.prevout)
8687
return true;
@@ -132,9 +133,6 @@ bool CLASS::populate_with_metadata(const input& input,
132133
}
133134
}
134135

135-
// If read via the store for store confirmation, then...
136-
// input.metadata.point_link must be set earlier in get_input().
137-
////BC_ASSERT(input.metadata.point_link != max_uint32);
138136
return !is_null(input.prevout);
139137
}
140138

0 commit comments

Comments
 (0)