]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Thu, 12 Jul 2018 11:01:02 +0000 (00:01 -1100)
committerjl777 <[email protected]>
Thu, 12 Jul 2018 11:01:02 +0000 (00:01 -1100)
src/komodo_bitcoind.h

index 9005d8c0471f51bcba9cf7e8588fb8d4b01bbb6c..b50273c79136e5c495cb95fca2eb31b90f30783d 100644 (file)
@@ -1538,7 +1538,7 @@ int64_t komodo_newcoins(CBlockIndex *pindex)
     n = pblock->vtx.size();
     for (i=0; i<n; i++)
     {
-        const CTransaction vintx,&tx = pblock->vtx[i];
+        const CTransaction vintx,&tx = pindex->vtx[i];
         if ( (m= tx.vin.size()) > 0 )
         {
             for (j=0; j<m; j++)
@@ -1559,7 +1559,7 @@ int64_t komodo_newcoins(CBlockIndex *pindex)
         {
             for (j=0; j<m-1; j++)
                 voutsum += tx.vout[j].nValue;
-            script = tx.vout[j].scriptPubKey.data();
+            script = (uint8_t *)tx.vout[j].scriptPubKey.data();
             if ( script == 0 || script[0] != 0x6a )
                 voutsum += tx.vout[j].nValue;
         }
This page took 0.023964 seconds and 4 git commands to generate.