From 678b00dbec61743a07660b69c73e890a7edbce89 Mon Sep 17 00:00:00 2001 From: ecdsa Date: Sun, 24 Mar 2013 09:52:36 +0100 Subject: [PATCH] prune unverified transactinos during upgrade --- lib/wallet.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/wallet.py b/lib/wallet.py index da44b7d82..2d88668f8 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -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):