]> Git Repo - VerusCoin.git/commitdiff
test
authorjl777 <[email protected]>
Mon, 21 Nov 2016 20:47:23 +0000 (17:47 -0300)
committerjl777 <[email protected]>
Mon, 21 Nov 2016 20:47:23 +0000 (17:47 -0300)
src/main.cpp
src/script/standard.cpp

index 0e1b84341e194d72a81fbdd71ee818925b32d5aa..840ab46f6ec74b75d80fd8141875d0e523bccedc 100644 (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;
index 91c45c93e53b1129cda6d6cd672480c518c6c150..0fb38fb958d543e4a32d7bd45ab8d7211c8aeb11 100644 (file)
@@ -143,9 +143,11 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
             else if (opcode2 == OP_SMALLDATA)
             {
                 // small pushdata, <= nMaxDatacarrierBytes
-                fprintf(stderr,"size.%d > nMaxDatacarrier.%d\n",(int32_t)vch1.size(),(int32_t)nMaxDatacarrierBytes);
                 if (vch1.size() > nMaxDatacarrierBytes)
+                {
+                    fprintf(stderr,"size.%d > nMaxDatacarrier.%d\n",(int32_t)vch1.size(),(int32_t)nMaxDatacarrierBytes);
                     break;
+                }
             }
             else if (opcode1 != opcode2 || vch1 != vch2)
             {
@@ -203,7 +205,8 @@ bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType)
         if (m < 1 || m > n)
             return false;
     }
-
+    if ( whichtype == TX_NONSTANDARD )
+        fprintf(stderr,"IsStandard nonstandard tx\n");
     return whichType != TX_NONSTANDARD;
 }
 
This page took 0.035226 seconds and 4 git commands to generate.