Block PoS miner, need to cache first timestamp

This commit is contained in:
jl777
2018-05-03 09:34:51 +03:00
parent 9bf6c59e33
commit b92a8cd4bf

View File

@@ -421,7 +421,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
if ( GetAdjustedTime() < pblock->nTime )//|| pblock->GetBlockTime() > GetAdjustedTime() + 60)
{
fprintf(stderr,"need to wait %d seconds to mine:\n",(int32_t)(pblock->nTime - GetAdjustedTime()));
while ( 0 && GetAdjustedTime()+30 < pblock->nTime )
while ( GetAdjustedTime()+30 < pblock->nTime )
{
sleep(30);
fprintf(stderr,"%d ",(int32_t)(pblock->nTime - GetAdjustedTime()));