update sqlite coin chooser to only select verified transactions

This commit is contained in:
Jack Robison 2020-05-26 11:51:03 -04:00
parent adbbb11dbf
commit 597a101030
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -481,7 +481,7 @@ def get_spendable_utxos(transaction: sqlite3.Connection, accounts: List, reserve
INNER JOIN account_address USING (address)
LEFT JOIN txi USING (txoid)
INNER JOIN tx USING (txid)
WHERE txo.txo_type=0 AND txi.txoid IS NULL AND tx.txid IS NOT NULL AND NOT txo.is_reserved
WHERE txo.txo_type=0 AND txi.txoid IS NULL AND tx.txid IS NOT NULL AND tx.is_verified AND NOT txo.is_reserved
AND txo.amount BETWEEN ? AND ?
"""
if accounts: