tsanity check history - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2d84deeaad3f7f2e5706db7a562d8cec8a41c9ca DIR parent ec11e58added4aac33bb99ec08418ebc58deb000 HTML Author: ThomasV <thomasv@gitorious> Date: Mon, 30 Mar 2015 14:01:07 +0200 sanity check history 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@@ -761,6 +761,12 @@ class Abstract_Wallet(object): else: balance = None + assert balance in [None, 0] + #if balance not in [None, 0]: + # print_error("history error") + # self.clear_history() + # self.update() + return h2