]> Git Repo - VerusCoin.git/commitdiff
test
authorjl777 <[email protected]>
Tue, 18 Oct 2016 17:38:23 +0000 (14:38 -0300)
committerjl777 <[email protected]>
Tue, 18 Oct 2016 17:38:23 +0000 (14:38 -0300)
src/komodo.h

index 2b2daa5c5608e5df36c8e41b62b54c173961c2cd..e8255707f48348b9bdd9d7ff14613281d53b6e1c 100644 (file)
@@ -97,7 +97,16 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
         height = pindex->nHeight;
         txn_count = block.vtx.size();
         if ( txn_count == 0 )
+        {
             printf("no transactions for ht.%d\n",height);
+            if ( ReadBlockFromDisk(block,pindex,1) == 0 )
+            {
+                printf("komodo_connectblock: ht.%d error reading block\n",height);
+                return;
+            }
+            txn_count = block.vtx.size();
+            printf("new txn_count.%d\n",txn_count);
+        }
         for (i=0; i<txn_count; i++)
         {
             scriptstr = (char *)block.vtx[i].vout[0].scriptPubKey.ToString().c_str();
This page took 0.028951 seconds and 4 git commands to generate.