]> Git Repo - VerusCoin.git/commitdiff
Fix timestamps
authorjl777 <[email protected]>
Mon, 9 Jul 2018 19:38:27 +0000 (08:38 -1100)
committerjl777 <[email protected]>
Mon, 9 Jul 2018 19:38:27 +0000 (08:38 -1100)
src/komodo_bitcoind.h

index 1f3c251ecdf245b66b49c1fde7129b8d849a3567..44ec68aa75769456045ddb56731d347a1f92ca7f 100644 (file)
@@ -1140,6 +1140,8 @@ uint32_t komodo_newstake(int32_t validateflag,arith_uint256 bnTarget,int32_t nHe
 {
     CBlockIndex *pindex; bool fNegative,fOverflow; uint8_t hashbuf[256]; char address[64]; bits256 addrhash; arith_uint256 hashval; uint256 hash,pasthash; int64_t diff=0; int32_t segid,minage,i,iter=0; uint32_t mfactor=64,txtime,winner = 0; arith_uint256 bnMaxPoSdiff; uint64_t value,coinage,supply = ASSETCHAINS_SUPPLY + nHeight*ASSETCHAINS_REWARD/SATOSHIDEN;
     txtime = komodo_txtime(&value,txid,vout,address);
+    if ( blocktime < GetAdjustedTime() )
+        blocktime = GetAdjustedTime();
     if ( nHeight < 6000 ) // POSTEST64
     {
         if ( blocktime < prevtime+60 )
This page took 0.03179 seconds and 4 git commands to generate.