Allow comma separated address lists for from_addr

This commit is contained in:
ThomasV 2017-10-07 11:54:28 +02:00
parent c810c6a356
commit d28f603483
1 changed files with 2 additions and 2 deletions

View File

@ -435,7 +435,7 @@ class Commands:
def payto(self, destination, amount, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None):
"""Create a transaction. """
tx_fee = satoshis(fee)
domain = [from_addr] if from_addr else None
domain = from_addr.split(',') if from_addr else None
tx = self._mktx([(destination, amount)], tx_fee, change_addr, domain, nocheck, unsigned, rbf, password, locktime)
return tx.as_dict()
@ -443,7 +443,7 @@ class Commands:
def paytomany(self, outputs, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None):
"""Create a multi-output transaction. """
tx_fee = satoshis(fee)
domain = [from_addr] if from_addr else None
domain = from_addr.split(',') if from_addr else None
tx = self._mktx(outputs, tx_fee, change_addr, domain, nocheck, unsigned, rbf, password, locktime)
return tx.as_dict()