test
This commit is contained in:
@@ -675,11 +675,13 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int nDataOut = 0;
|
unsigned int v=0,nDataOut = 0;
|
||||||
txnouttype whichType;
|
txnouttype whichType;
|
||||||
BOOST_FOREACH(const CTxOut& txout, tx.vout) {
|
BOOST_FOREACH(const CTxOut& txout, tx.vout)
|
||||||
|
{
|
||||||
if (!::IsStandard(txout.scriptPubKey, whichType)) {
|
if (!::IsStandard(txout.scriptPubKey, whichType)) {
|
||||||
reason = "scriptpubkey";
|
reason = "scriptpubkey";
|
||||||
|
fprintf(stderr,"vout.%d nDataout.%d\n",v,nDataOut);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -692,6 +694,7 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
|
|||||||
reason = "dust";
|
reason = "dust";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
v++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// only one OP_RETURN txout is permitted
|
// only one OP_RETURN txout is permitted
|
||||||
|
|||||||
Reference in New Issue
Block a user