This commit is contained in:
jl777
2016-11-21 17:47:23 -03:00
parent a2829a0c45
commit cc0f93da2e
2 changed files with 12 additions and 5 deletions

View File

@@ -676,14 +676,18 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
txnouttype whichType;
BOOST_FOREACH(const CTxOut& txout, tx.vout)
{
if (!::IsStandard(txout.scriptPubKey, whichType)) {
reason = "scriptpubkey";
fprintf(stderr,"vout.%d nDataout.%d\n",v,nDataOut);
if (!::IsStandard(txout.scriptPubKey, whichType))
{
reason = "scriptpubkeyA";
fprintf(stderr,">>>>>>>>>>>>>>> vout.%d nDataout.%d\n",v,nDataOut);
return false;
}
if (whichType == TX_NULL_DATA)
{
nDataOut++;
fprintf(stderr,"is OP_RETURN\n");
}
else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) {
reason = "bare-multisig";
return false;