skip dust transactions
This commit is contained in:
parent
8159c71950
commit
8895d21abf
1 changed files with 9 additions and 4 deletions
|
@ -279,11 +279,16 @@ class LBRYWallet(object):
|
||||||
def _send_payments(self):
|
def _send_payments(self):
|
||||||
payments_to_send = {}
|
payments_to_send = {}
|
||||||
for address, points in self.queued_payments.items():
|
for address, points in self.queued_payments.items():
|
||||||
log.info("Should be sending %s points to %s", str(points), str(address))
|
if points > 0:
|
||||||
payments_to_send[address] = points
|
log.info("Should be sending %s points to %s", str(points), str(address))
|
||||||
self.total_reserved_points -= points
|
payments_to_send[address] = points
|
||||||
self.wallet_balance -= points
|
self.total_reserved_points -= points
|
||||||
|
self.wallet_balance -= points
|
||||||
|
else:
|
||||||
|
log.info("Skipping dust")
|
||||||
|
|
||||||
del self.queued_payments[address]
|
del self.queued_payments[address]
|
||||||
|
|
||||||
if payments_to_send:
|
if payments_to_send:
|
||||||
log.info("Creating a transaction with outputs %s", str(payments_to_send))
|
log.info("Creating a transaction with outputs %s", str(payments_to_send))
|
||||||
d = self._do_send_many(payments_to_send)
|
d = self._do_send_many(payments_to_send)
|
||||||
|
|
Loading…
Reference in a new issue