Browse Source

Detect new block during wait

pull/4/head
jl777 6 years ago
parent
commit
4cc387ec2c
  1. 7
      src/miner.cpp

7
src/miner.cpp

@ -959,7 +959,14 @@ void static BitcoinMiner()
{
fprintf(stderr,"need to wait %d seconds to submit block\n",(int32_t)(B.nTime - GetAdjustedTime()));
while ( GetAdjustedTime() < B.nTime )
{
sleep(1);
if ( chainActive.Tip()->nHeight >= Mining_height )
{
fprintf(stderr,"new block arrived\n");
return(false);
}
}
}
if ( ASSETCHAINS_STAKED == 0 )
{

Loading…
Cancel
Save