1
0

Make trustedcoin.py multi-window compatible

This commit is contained in:
Neil Booth
2015-09-09 16:24:11 +09:00
parent f90ca2684e
commit 886192aba7
3 changed files with 190 additions and 189 deletions

View File

@@ -972,7 +972,7 @@ class Abstract_Wallet(PrintError):
# Sort the inputs and outputs deterministically
tx.BIP_LI01_sort()
run_hook('make_unsigned_transaction', tx)
run_hook('make_unsigned_transaction', self, tx)
return tx
def mktx(self, outputs, password, config, fee=None, change_addr=None, domain=None):
@@ -1022,7 +1022,7 @@ class Abstract_Wallet(PrintError):
tx.sign(keypairs)
# Run hook, and raise if error
tx.error = None
run_hook('sign_transaction', tx, password)
run_hook('sign_transaction', self, tx, password)
if tx.error:
raise BaseException(tx.error)