treplace test that should never happen - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7ff32877f7062bef773b48d56c92cb06b08e10ce DIR parent 344b5e0a232fce4945ffd65c946c01340ca1e283 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 15 Feb 2018 15:31:27 +0100 replace test that should never happen Diffstat: M lib/wallet.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -731,10 +731,7 @@ class Abstract_Wallet(PrintError): if spending_tx_hash is None: continue # this outpoint (ser) has already been spent, by spending_tx - if spending_tx_hash not in self.transactions: - # can't find this txn: delete and ignore it - self.spent_outpoints.pop(ser) - continue + assert spending_tx_hash in self.transactions conflicting_txns |= {spending_tx_hash} txid = tx.txid() if txid in conflicting_txns: