Skip to content

Commit

Permalink
Merge pull request #539 from evoskuil/master
Browse files Browse the repository at this point in the history
Style, comments.
  • Loading branch information
evoskuil authored Jan 13, 2025
2 parents 95ac9a0 + d728ea6 commit b6853bd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions include/bitcoin/database/impl/query/archive.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,17 @@ bool CLASS::set(const block& block, bool strong) NOEXCEPT
TEMPLATE
bool CLASS::populate(const input& input) const NOEXCEPT
{
// Null point would return nullptr and be interpreted as missing.
BC_ASSERT(!input.point().is_null());

if (input.prevout)
return true;

const auto tx = to_tx(input.point().hash());
input.prevout = get_output(tx, input.point().index());
input.metadata.coinbase = is_coinbase(tx);
input.metadata.inside = false;
input.metadata.parent = tx;

// input.metadata is not populated.
// Null point would return nullptr and be interpreted as missing.
////input.prevout = get_output(input.point());
input.metadata.inside = false;
input.metadata.coinbase = is_coinbase(tx);
input.prevout = get_output(tx, input.point().index());
return !is_null(input.prevout);
}

Expand Down

0 comments on commit b6853bd

Please sign in to comment.