make 0 value data outputs standard

This commit is contained in:
janko33bd
2017-12-13 00:27:05 +01:00
parent 213fa374d1
commit 7b90059a42
3 changed files with 36 additions and 0 deletions

View File

@@ -111,6 +111,14 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason)
if (whichType == TX_NULL_DATA)
nDataOut++;
else if (txout.nValue == 0) {
reason = "dust";
return false;
}
if (!txout.scriptPubKey.HasCanonicalPushes()) {
reason = "scriptpubkey-non-canonical-push";
return false;
}
else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) {
reason = "bare-multisig";
return false;