From 8b44f6c46b921dcd70e195d36497dee16dd9509c Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 1 Dec 2016 11:24:19 -0300 Subject: [PATCH] test --- src/miner.cpp | 2 +- src/rpcblockchain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();