Fees can never be dust

This commit is contained in:
Gregory Sanders 2017-03-17 14:26:35 -04:00
parent 6c3b1f25c0
commit 7e12ebe802

View file

@ -224,6 +224,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))