switch policy to (txout.IsDust(::minRelayTxFee))
This commit is contained in:
@@ -108,7 +108,7 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason)
|
|||||||
|
|
||||||
if (whichType == TX_NULL_DATA)
|
if (whichType == TX_NULL_DATA)
|
||||||
nDataOut++;
|
nDataOut++;
|
||||||
else if (txout.nValue == 0) {
|
else if (txout.IsDust(::minRelayTxFee)) {
|
||||||
reason = "dust";
|
reason = "dust";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -119,7 +119,7 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason)
|
|||||||
else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) {
|
else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) {
|
||||||
reason = "bare-multisig";
|
reason = "bare-multisig";
|
||||||
return false;
|
return false;
|
||||||
} else if (txout.nValue == 0) {
|
} else if (txout.IsDust(::minRelayTxFee)) {
|
||||||
reason = "dust";
|
reason = "dust";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user