more accurate computation of transaction fees.
[electrum-nvc.git] / gui / gui_gtk.py
index 8568f7f..d3261de 100644 (file)
@@ -198,7 +198,7 @@ def run_settings_dialog(wallet, parent):
     fee_entry.connect('changed', numbify, False)
     fee_entry.show()
     fee.pack_start(fee_entry,False,False, 10)
-    add_help_button(fee, 'Fee per transaction input. Transactions involving multiple inputs tend to have a higher fee. Recommended value:0.0005')
+    add_help_button(fee, 'Fee per kilobyte of transaction. Recommended value:0.0001')
     fee.show()
     vbox.pack_start(fee, False,False, 5)
             
@@ -843,6 +843,11 @@ class ElectrumWindow:
         except BaseException, e:
             self.show_message(str(e))
             return
+
+        if tx.requires_fee(self.wallet.verifier) and fee == 0:
+            self.show_message( "This transaction requires a fee, or it will not be propagated by the network." )
+            return
+
             
         if label: 
             self.wallet.labels[tx.hash()] = label