]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Sat, 7 Apr 2018 11:32:54 +0000 (14:32 +0300)
committerjl777 <[email protected]>
Sat, 7 Apr 2018 11:32:54 +0000 (14:32 +0300)
src/miner.cpp

index f49de0314dc285b1b547011aa17427957a25724b..1e55a2f090cff584543e51a4fee603665a23d12d 100644 (file)
@@ -190,7 +190,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
         pblock->nTime = GetAdjustedTime();
         const int64_t nMedianTimePast = pindexPrev->GetMedianTimePast();
         CCoinsViewCache view(pcoinsTip);
-        uint32_t expired;
+        uint32_t expired; uint64_t commission;
         
         // Priority order to process transactions
         list<COrphan> vOrphan; // list memory doesn't move
@@ -396,11 +396,11 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
         // Add fees
         txNew.vout[0].nValue += nFees;
         txNew.vin[0].scriptSig = CScript() << nHeight << OP_0;
-        if ( ASSETCHAINS_SYMBOL[0] != 0 && ASSETCHAINS_OVERRIDE_PUBKEY33[0] != 0 && ASSETCHAINS_COMMISSION != 0 && (checktoshis= komodo_commission(block)) != 0 )
+        if ( ASSETCHAINS_SYMBOL[0] != 0 && ASSETCHAINS_OVERRIDE_PUBKEY33[0] != 0 && ASSETCHAINS_COMMISSION != 0 && (commission= komodo_commission(pblocktemplate->block)) != 0 )
         {
             int32_t i; uint8_t *ptr;
             txNew.vout.resize(2);
-            txNew.vout[1].nValue = checktoshis;
+            txNew.vout[1].nValue = commission;
             txNew.vout[1].scriptPubKey.resize(35);
             ptr = (uint8_t *)txNew.vout[1].scriptPubKey.data();
             ptr[0] = 33;
This page took 0.0263 seconds and 4 git commands to generate.