commit d28f6034835dfea922dc30ff4110be40651fb4c4
parent c810c6a3562dd2f9916006437ff1d6a00c24edf3
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 7 Oct 2017 11:54:28 +0200
Allow comma separated address lists for from_addr
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/commands.py b/lib/commands.py
@@ -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()