1
0

select addresses to send from

based on branch by bkkcoins
This commit is contained in:
kazcw
2013-11-14 20:05:45 -05:00
committed by ThomasV
parent 63b9911a9f
commit ae028e780d
2 changed files with 60 additions and 9 deletions

View File

@@ -1357,8 +1357,14 @@ class Wallet:
return Transaction.from_io(inputs, outputs)
def mktx_from_account(self, outputs, password, fee=None, account=None):
domain = self.get_account_addresses(account) if account else None
def mktx_from_account(self, outputs, password, fee=None, account=None,
pay_from=None):
if pay_from:
domain = pay_from
elif account:
domain = self.get_account_addresses(account)
else:
domain = None
return self.mktx(outputs, password, fee, change_addr=None, domain=domain)