From 39b315da198461bcf6e72dd07626a90e26f07224 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 29 Oct 2016 12:12:30 -0300 Subject: [PATCH] test --- src/init.cpp | 2 +- src/miner.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 1d0ffdb0b..91412bbc3 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1493,7 +1493,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) #ifdef ENABLE_WALLET // Generate coins in the background if (pwalletMain) - GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain, GetArg("-genproclimit", 1)); + GenerateBitcoins(GetBoolArg("-gen", true), pwalletMain, GetArg("-genproclimit", 1)); #endif // ********************************************************* Step 11: finished diff --git a/src/miner.cpp b/src/miner.cpp index fabae3192..5d40c3a13 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -490,7 +490,7 @@ void static BitcoinMiner(CWallet *pwallet) try { while (true) { - if (chainparams.MiningRequiresPeers()) + if (0 && chainparams.MiningRequiresPeers()) { // Busy-wait for the network to come online so we don't waste time mining // on an obsolete chain. In regtest mode we expect to fly solo. @@ -507,7 +507,7 @@ void static BitcoinMiner(CWallet *pwallet) } while (true); //fprintf(stderr,"Found peers\n"); } - //fprintf(stderr,"create new block\n"); + fprintf(stderr,"create new block\n"); // // Create new block //