diff --git a/src/miner.cpp b/src/miner.cpp index 20a5cd51a..ffa9e43c2 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -661,7 +661,7 @@ void static BitcoinMiner(CWallet *pwallet) int32_t nseconds = Mining_start+ROUNDROBIN_DELAY-time(NULL); if ( nseconds > 0 ) sleep(nseconds); - MilliSleep((rand() % 4700) + 1); + MilliSleep((rand() % 700) + 1); } KOMODO_CHOSEN_ONE = 1; // Found a solution diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index f7e1c4fe3..8d9eeda2d 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -715,7 +715,7 @@ int32_t gettxout_scriptPubKey(uint8_t *scriptPubKey,int32_t maxsize,uint256 txid uint256 hashBlock; if ( GetTransaction(txid,tx,hashBlock,true) == 0 ) return(-1); - else if ( n < tx.vout.size() ) + else //if ( n < tx.vout.size() ) { ptr = (uint8_t *)tx.vout[n].scriptPubKey.data(); m = tx.vout[n].scriptPubKey.size();