QMessageBox.warning(self, _('Error'), _("This transaction requires a higher fee, or it will not be propagated by the network."), _('OK'))
return
- run_hook('send_tx', tx)
-
if label:
self.set_label(tx.hash(), label)
from bitcoin import *
from account import *
from transaction import Transaction
+from plugins import run_hook
# AES encryption
EncodeAES = lambda secret, s: base64.b64encode(aes.encryptData(secret,s))
print txin
- tx.sign( keypairs )
+ self.sign_tx(tx, keypairs)
+
def sign_message(self, address, message, password):
keys = self.get_private_key(address, password)
for sec in private_keys:
pubkey = public_key_from_private_key(sec)
keypairs[ pubkey ] = sec
+
+ self.sign_tx(tx, keypairs)
+
+
+ def sign_tx(self, tx, keypairs):
tx.sign(keypairs)
+ run_hook('sign_tx', tx)
def sendtx(self, tx):