]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Mon, 16 Apr 2018 20:21:24 +0000 (23:21 +0300)
committerjl777 <[email protected]>
Mon, 16 Apr 2018 20:21:24 +0000 (23:21 +0300)
src/miner.cpp

index df75ba6dc396118fd0b12a5575b0f1567a9ce756..84194f5bac429303ae2b3893c1df6410611ae3c1 100644 (file)
@@ -485,7 +485,12 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
             pblock->nBits         = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus());
         }
         if ( ASSETCHAINS_SYMBOL[0] == 0 && NOTARY_PUBKEY33[0] != 0 && pblock->nTime < pindexPrev->nTime+60 )
+        {
             pblock->nTime = pindexPrev->nTime + 60;
+            fprintf(stderr,"block.nTime %u vs prev.%u, gettime.%u vs adjusted.%u\n",(uint32_t)pblock->nTime,(uint32_t)(pindexPrev->nTime + 60),(uint32_t)pblock->GetBlockTime(),(uint32_t)(GetAdjustedTime() + 60));
+            while ( pblock->GetBlockTime() > GetAdjustedTime() + 60 )
+                sleep(1);
+        }
         pblock->nSolution.clear();
         pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]);
         
This page took 0.026415 seconds and 4 git commands to generate.