git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3ad453f
)
prune unverified transactinos during upgrade
author
ecdsa
<ecdsa@github>
Sun, 24 Mar 2013 08:52:36 +0000 (09:52 +0100)
committer
ecdsa
<ecdsa@github>
Sun, 24 Mar 2013 08:52:36 +0000 (09:52 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
da44b7d
..
2d88668
100644
(file)
--- 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):