From 9632af31d205ece64bbb5572d78f86c33d9dd2cb Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 25 Oct 2016 10:24:25 -0300 Subject: [PATCH] test --- src/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f9bcececf..df7a7c3f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -675,14 +675,16 @@ bool IsStandardTx(const CTransaction& tx, string& reason) } } - unsigned int nDataOut = 0; + unsigned int v=0,nDataOut = 0; txnouttype whichType; - BOOST_FOREACH(const CTxOut& txout, tx.vout) { + BOOST_FOREACH(const CTxOut& txout, tx.vout) + { if (!::IsStandard(txout.scriptPubKey, whichType)) { reason = "scriptpubkey"; + fprintf(stderr,"vout.%d nDataout.%d\n",v,nDataOut); return false; } - + if (whichType == TX_NULL_DATA) nDataOut++; else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) { @@ -692,6 +694,7 @@ bool IsStandardTx(const CTransaction& tx, string& reason) reason = "dust"; return false; } + v++; } // only one OP_RETURN txout is permitted