[bisq-network/bisq] Prevent dust outputs from being created during withdraw from wallet (#4093)

James Cox notifications at github.com
Sun Mar 29 23:30:49 UTC 2020


@jmacxx commented on this pull request.



> @@ -629,6 +631,17 @@ public void updateItem(final WithdrawalListItem item, boolean empty) {
                     }
                 });
     }
+
+    private Coin getDust(Transaction tx) {
+        Coin dust = Coin.ZERO;
+        for (TransactionOutput txo: tx.getOutputs()) {
+            if (txo.getValue().value < 546) {

Changed to use `Restrictions.getMinNonDustOutput()` which equates to 546 sats

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4093#discussion_r399870146
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200329/e1027053/attachment.html>


More information about the bisq-github mailing list