tmessage about frozen funds - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6585da69feb4f8fe3b85441d7da8a6a3ed6bfb83 DIR parent 6e10687abe10d7516cce8e080ed384198edde49d HTML Author: thomasv <thomasv@gitorious> Date: Fri, 12 Apr 2013 14:29:11 +0200 message about frozen funds Diffstat: M gui/gui_classic.py | 2 ++ M lib/wallet.py | 9 +++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/gui_classic.py b/gui/gui_classic.py t@@ -745,6 +745,8 @@ class ElectrumWindow(QMainWindow): palette.setColor(self.amount_e.foregroundRole(), QColor('red')) self.funds_error = True text = _( "Not enough funds" ) + c, u = self.wallet.get_frozen_balance() + if c+u: text += ' (' + self.format_amount(c+u).strip() + self.base_unit() + ' ' +_("are frozen") + ')' self.statusBar().showMessage(text) self.amount_e.setPalette(palette) DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -521,6 +521,15 @@ class Wallet: unconf += u return conf, unconf + def get_frozen_balance(self): + conf = unconf = 0 + for addr in self.frozen_addresses: + c, u = self.get_addr_balance(addr) + conf += c + unconf += u + return conf, unconf + + def get_balance(self): cc = uu = 0 for a in self.accounts.keys():