Browse Source

-print

warmup
jl777 5 years ago
parent
commit
b8ae049689
  1. 2
      src/komodo_bitcoind.h
  2. 1
      src/miner.cpp

2
src/komodo_bitcoind.h

@ -1437,7 +1437,7 @@ arith_uint256 komodo_adaptivepow_target(int32_t height,arith_uint256 bnTarget,ui
bnTarget = easy;
fprintf(stderr,"tipdiff.%d diff.%d height.%d miner overflowed mult.%lld, set to mindiff\n",tipdiff,diff,height,(long long)mult);
} else fprintf(stderr,"tipdiff.%d diff.%d height.%d miner elapsed %d, adjust by factor of %lld\n",tipdiff,diff,height,diff,(long long)mult);
} else fprintf(stderr,"height.%d tipdiff.%d diff %d, vs %d\n",height,tipdiff,diff,13*ASSETCHAINS_BLOCKTIME);
} //else fprintf(stderr,"height.%d tipdiff.%d diff %d, vs %d\n",height,tipdiff,diff,13*ASSETCHAINS_BLOCKTIME);
} else fprintf(stderr,"adaptive cant find height.%d\n",height);
return(bnTarget);
}

1
src/miner.cpp

@ -2042,7 +2042,6 @@ void static BitcoinMiner()
pblock->nBits = savebits;
if ( ASSETCHAINS_ADAPTIVEPOW > 0 )
{
fprintf(stderr,"update time in miner\n");
UpdateTime(pblock, chainparams.GetConsensus(), pindexPrev);
hashTarget = komodo_adaptivepow_target(Mining_height,HASHTarget,pblock->nTime);
}

Loading…
Cancel
Save