switch policy to (txout.IsDust(::minRelayTxFee))

This commit is contained in:
Michel van Kessel
2021-02-21 17:31:29 +01:00
parent 06c8783f51
commit 08a4ccb614

View File

@@ -108,7 +108,7 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason)
if (whichType == TX_NULL_DATA)
nDataOut++;
else if (txout.nValue == 0) {
else if (txout.IsDust(::minRelayTxFee)) {
reason = "dust";
return false;
}
@@ -119,7 +119,7 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason)
else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) {
reason = "bare-multisig";
return false;
} else if (txout.nValue == 0) {
} else if (txout.IsDust(::minRelayTxFee)) {
reason = "dust";
return false;
}