From 048eb01300dafd8790eee7e0ec7d939daa54361f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 28 Feb 2019 10:04:44 +0100 Subject: [PATCH] fix json_db list --- electrum/json_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/json_db.py b/electrum/json_db.py index 9048591f0..4c2237ac3 100644 --- a/electrum/json_db.py +++ b/electrum/json_db.py @@ -600,7 +600,7 @@ class JsonDB(PrintError): d[addr] = set([tuple(x) for x in lst]) # remove unreferenced tx - for tx_hash in self.transactions: + for tx_hash in list(self.transactions.keys()): if not self.get_txi(tx_hash) and not self.get_txo(tx_hash): self.print_error("removing unreferenced tx", tx_hash) self.transactions.pop(tx_hash)