From be850de4995f8b15ede51343e88ba00e9509ce80 Mon Sep 17 00:00:00 2001 From: kexkey Date: Sun, 23 Feb 2020 22:10:44 +0000 Subject: [PATCH] When RBF, multiple txid linked to same address, must SELECT DISTINCT cuz listunspent errors (#167) --- proxy_docker/app/script/manage_missed_conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy_docker/app/script/manage_missed_conf.sh b/proxy_docker/app/script/manage_missed_conf.sh index d58f4f9..fe700db 100644 --- a/proxy_docker/app/script/manage_missed_conf.sh +++ b/proxy_docker/app/script/manage_missed_conf.sh @@ -36,7 +36,7 @@ manage_missed_conf() { trace "[Entering manage_missed_conf()]" - local watches=$(sql 'SELECT address FROM watching w LEFT JOIN watching_tx ON w.id = watching_id LEFT JOIN tx t ON t.id = tx_id WHERE watching AND imported AND (tx_id IS NULL OR t.confirmations=0)') + local watches=$(sql 'SELECT DISTINCT address FROM watching w LEFT JOIN watching_tx ON w.id = watching_id LEFT JOIN tx t ON t.id = tx_id WHERE watching AND imported AND (tx_id IS NULL OR t.confirmations=0)') trace "[manage_missed_conf] watches=${watches}" if [ ${#watches} -eq 0 ]; then trace "[manage_missed_conf] Nothing missed!"