Skip to content

Commit d728ea6

Browse files
committed
Style, comments.
1 parent 95ac9a0 commit d728ea6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

include/bitcoin/database/impl/query/archive.ipp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,17 @@ bool CLASS::set(const block& block, bool strong) NOEXCEPT
138138
TEMPLATE
139139
bool CLASS::populate(const input& input) const NOEXCEPT
140140
{
141+
// Null point would return nullptr and be interpreted as missing.
141142
BC_ASSERT(!input.point().is_null());
143+
142144
if (input.prevout)
143145
return true;
144146

145147
const auto tx = to_tx(input.point().hash());
146-
input.prevout = get_output(tx, input.point().index());
147-
input.metadata.coinbase = is_coinbase(tx);
148-
input.metadata.inside = false;
149148
input.metadata.parent = tx;
150-
151-
// input.metadata is not populated.
152-
// Null point would return nullptr and be interpreted as missing.
153-
////input.prevout = get_output(input.point());
149+
input.metadata.inside = false;
150+
input.metadata.coinbase = is_coinbase(tx);
151+
input.prevout = get_output(tx, input.point().index());
154152
return !is_null(input.prevout);
155153
}
156154

0 commit comments

Comments
 (0)