From 597a101030fd4afac37ce13dc5eadabaf0fddeec Mon Sep 17 00:00:00 2001
From: Jack Robison <jackrobison@lbry.io>
Date: Tue, 26 May 2020 11:51:03 -0400
Subject: [PATCH] update sqlite coin chooser to only select verified
 transactions

---
 lbry/wallet/database.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py
index 9430d87f3..260f0db8f 100644
--- a/lbry/wallet/database.py
+++ b/lbry/wallet/database.py
@@ -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: