From 8895d21abf4351555ef95387aa16755509fb4062 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 27 Aug 2016 02:42:20 -0400 Subject: [PATCH] skip dust transactions --- lbrynet/core/LBRYWallet.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lbrynet/core/LBRYWallet.py b/lbrynet/core/LBRYWallet.py index 571f981d6..791a120bf 100644 --- a/lbrynet/core/LBRYWallet.py +++ b/lbrynet/core/LBRYWallet.py @@ -279,11 +279,16 @@ class LBRYWallet(object): def _send_payments(self): payments_to_send = {} for address, points in self.queued_payments.items(): - log.info("Should be sending %s points to %s", str(points), str(address)) - payments_to_send[address] = points - self.total_reserved_points -= points - self.wallet_balance -= points + if points > 0: + log.info("Should be sending %s points to %s", str(points), str(address)) + payments_to_send[address] = points + self.total_reserved_points -= points + self.wallet_balance -= points + else: + log.info("Skipping dust") + del self.queued_payments[address] + if payments_to_send: log.info("Creating a transaction with outputs %s", str(payments_to_send)) d = self._do_send_many(payments_to_send)