From 99936b03db2a3f3cc6ec5776c331a0ac564ec9e9 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Thu, 1 Dec 2016 09:35:54 -0500 Subject: [PATCH] No dust for non-bitcoin outputs --- src/primitives/transaction.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index b62c691842..c3d40d8c9c 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -357,6 +357,9 @@ public: { if (!nValue.IsAmount()) return false; // FIXME + uint256 assetid; + if (!nAsset.GetAssetID(assetid) || assetid != BITCOINID) + 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))