From 7a94212eec7dc2f9adb5bc2c1bcd5a6716d82ca8 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Fri, 17 Mar 2017 14:26:35 -0400 Subject: [PATCH] Fees can never be dust --- src/primitives/transaction.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 817dd1517c..6e2abfa984 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -234,6 +234,8 @@ public: return false; // FIXME if (!nAsset.IsExplicit() || nAsset.GetAsset() != BITCOINID) return false; + if (IsFee()) + return false; //Withdrawlocks are evaluated at a higher, static feerate //to ensure peg-outs are IsStandard on mainchain if (scriptPubKey.IsWithdrawLock() && nValue.GetAmount() < GetDustThreshold(withdrawLockTxFee))