Skip to content

Commit

Permalink
Use is_spendable() more consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
shesek committed Oct 27, 2020
1 parent 9cb880a commit c09bb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/new_index/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ fn add_transaction(

let txid = full_hash(&tx.txid()[..]);
for (txo_index, txo) in tx.output.iter().enumerate() {
if !txo.script_pubkey.is_provably_unspendable() {
if is_spendable(txo) {
rows.push(TxOutRow::new(&txid, txo_index, txo).into_row());
}
}
Expand Down

0 comments on commit c09bb05

Please sign in to comment.