From 7adbc036f50a51f551eb05918e344dea8d509acc Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 30 Oct 2016 07:46:35 -0300 Subject: [PATCH] test --- src/miner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 597a62e6c..920ed4806 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -100,7 +100,7 @@ void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, int32_t komodo_pax_opreturn(uint8_t *opret,int32_t maxsize); void komodo_gateway_deposits(CMutableTransaction *txNew); -extern int32_t KOMODO_INITDONE; +extern int32_t KOMODO_INITDONE,ASSETCHAINS_SHORTFLAG; extern uint64_t KOMODO_DEPOSIT; extern char ASSETCHAINS_SYMBOL[16]; @@ -523,7 +523,7 @@ void static BitcoinMiner(CWallet *pwallet) try { while (true) { - if (chainparams.MiningRequiresPeers()) + if (ASSETCHAINS_SHORTFLAG == 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.