tconfirmation dialog before sending large amounts - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 6645bc3505551b987152c4d498838d0388e231be
DIR parent d2b86091b4a4f99e487f0c3e09661d9654725de7
HTML Author: ThomasV <thomasv@gitorious>
Date: Sat, 13 Jul 2013 20:21:44 +0200
confirmation dialog before sending large amounts
Diffstat:
M gui/gui_classic.py | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
DIR diff --git a/gui/gui_classic.py b/gui/gui_classic.py
t@@ -909,6 +909,11 @@ class ElectrumWindow(QMainWindow):
QMessageBox.warning(self, _('Error'), _("This transaction requires a higher fee, or it will not be propagated by the network."), _('OK'))
return
+ confirm_amount = self.config.get('confirm_amount', 100000000)
+ if amount >= confirm_amount:
+ if not self.question("send %s to %s?"%(self.format_amount(amount) + ' '+ self.base_unit(), to_address)):
+ return
+
self.run_hook('send_tx', tx)
if label: