diff --git a/src/new_index/schema.rs b/src/new_index/schema.rs index a59d5f50..facc9f36 100644 --- a/src/new_index/schema.rs +++ b/src/new_index/schema.rs @@ -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()); } }