Allow comma separated address lists for from_addr
This commit is contained in:
parent
c810c6a356
commit
d28f603483
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue