From 2d84deeaad3f7f2e5706db7a562d8cec8a41c9ca Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 30 Mar 2015 14:01:07 +0200 Subject: [PATCH] sanity check history --- lib/wallet.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/wallet.py b/lib/wallet.py index dec271a2..b5cc0836 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -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