tprune unverified transactinos during upgrade - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 678b00dbec61743a07660b69c73e890a7edbce89 DIR parent 3ad453fafbfbeafedfa1181800099148cabf530f HTML Author: ecdsa <ecdsa@github> Date: Sun, 24 Mar 2013 09:52:36 +0100 prune unverified transactinos during upgrade Diffstat: M lib/wallet.py | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -859,6 +859,12 @@ class Wallet: self.verifier.add(tx_hash, tx_height) + # if we are on a pruning server, remove unverified transactions + vr = self.verifier.transactions.keys() + self.verifier.verified_tx.keys() + for tx_hash in self.transactions.keys(): + if tx_hash not in vr: + self.transactions.pop(tx_hash) + def check_new_history(self, addr, hist):