From f8e367eba895e4ecbdd6c412b7b3493b54934ea6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 30 Oct 2016 18:39:51 -0300 Subject: [PATCH] test --- src/miner.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index cf76c0dc3..ed4f472aa 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -522,6 +522,7 @@ void static BitcoinMiner(CWallet *pwallet) ); try { + fprintf(stderr,"try %s Mining with %s\n",ASSETCHAINS_SYMBOL,solver.c_str()); while (true) { if (chainparams.MiningRequiresPeers()) @@ -537,7 +538,9 @@ void static BitcoinMiner(CWallet *pwallet) } if (!fvNodesEmpty && !IsInitialBlockDownload()) break; - MilliSleep(1000); + MilliSleep(5000); + fprintf(stderr,"fvNodesEmpty %d IsInitialBlockDownload() %d\n",(int32_t)fvNodesEmpty,(int32_t)IsInitialBlockDownload()); + } while (true); fprintf(stderr,"%s Found peers\n",ASSETCHAINS_SYMBOL); }