Skip to content

Commit

Permalink
Avoid abbreviations (style).
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Apr 21, 2024
1 parent 7575f06 commit c919993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/bitcoin/database/impl/query/confirm.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ inline error::error_t CLASS::unspent_duplicates(const tx_link& link,

// bip30: all (but self) must be confirmed spent or dup invalid (cb only).
size_t unspent{};
for (const auto& cb: coinbases)
for (index out{}; out < output_count(cb.tx); ++out)
if (!spent_prevout(cb.tx, out) && is_one(unspent++))
for (const auto& coinbase: coinbases)
for (index out{}; out < output_count(coinbase.tx); ++out)
if (!spent_prevout(coinbase.tx, out) && is_one(unspent++))
return error::unspent_coinbase_collision;

return is_zero(unspent) ? error::integrity : error::success;
Expand Down

0 comments on commit c919993

Please sign in to comment.