fix LBRYumWallet._do_send_many
This commit is contained in:
parent
8e8e186de9
commit
c232743963
1 changed files with 4 additions and 5 deletions
|
@ -1122,11 +1122,10 @@ class LBRYumWallet(LBRYWallet):
|
||||||
|
|
||||||
def _do_send_many(self, payments_to_send):
|
def _do_send_many(self, payments_to_send):
|
||||||
log.warning("Doing send many. payments to send: %s", str(payments_to_send))
|
log.warning("Doing send many. payments to send: %s", str(payments_to_send))
|
||||||
outputs = [(TYPE_ADDRESS, address, int(amount*COIN)) for address, amount in payments_to_send.iteritems()]
|
cmd = known_commands['paytomanyandsend']
|
||||||
d = threads.deferToThread(self.wallet.mktx, outputs, None, self.config)
|
func = getattr(self.cmd_runner, cmd.name)
|
||||||
d.addCallback(lambda tx: threads.deferToThread(self.wallet.sendtx, tx))
|
# outputs = [(address, amount) for address, amount in payments_to_send.iteritems()]
|
||||||
d.addCallback(self._save_wallet)
|
return threads.deferToThread(func, payments_to_send.iteritems())
|
||||||
return d
|
|
||||||
|
|
||||||
def _get_value_for_name(self, name):
|
def _get_value_for_name(self, name):
|
||||||
cmd = known_commands['getvalueforname']
|
cmd = known_commands['getvalueforname']
|
||||||
|
|
Loading…
Reference in a new issue