Consensus: Minimal way to move dust out of consensus

This commit is contained in:
Jorge Timón
2016-10-14 17:49:05 +02:00
parent 35da2aeed7
commit 330bb5a456
8 changed files with 54 additions and 50 deletions

View File

@@ -251,7 +251,7 @@ bool isDust(const QString& address, const CAmount& amount)
CTxDestination dest = CBitcoinAddress(address.toStdString()).Get();
CScript script = GetScriptForDestination(dest);
CTxOut txOut(amount, script);
return txOut.IsDust(dustRelayFee);
return IsDust(txOut, ::dustRelayFee);
}
QString HtmlEscape(const QString& str, bool fMultiLine)