No dust for non-bitcoin outputs

This commit is contained in:
Gregory Sanders 2016-12-01 09:35:54 -05:00
parent f9fd37cc8e
commit 99936b03db

View file

@ -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))