diff --git a/src/core.h b/src/core.h index 5eb953610d0a0..db6f5ab05c747 100644 --- a/src/core.h +++ b/src/core.h @@ -156,9 +156,11 @@ class CTxOut // to spend something, then we consider it dust. // A typical txout is 34 bytes big, and will // need a CTxIn of at least 148 bytes to spend, - // so dust is a txout less than 546 satoshis + // so dust is a txout less than 546 satoshis // with default nMinRelayTxFee. - return ((nValue*1000)/(3*((int)GetSerializeSize(SER_DISK,0)+148)) < nMinRelayTxFee); + if (!scriptPubKey.IsUnspendable()) { // dust applicable to spendable outputs only + return ((nValue*1000)/(3*((int)GetSerializeSize(SER_DISK,0)+148)) < nMinRelayTxFee); + } else { return false; } } friend bool operator==(const CTxOut& a, const CTxOut& b)