This commit is contained in:
jl777
2016-12-01 11:24:19 -03:00
parent 1ea06824ee
commit 8b44f6c46b
2 changed files with 2 additions and 2 deletions

View File

@@ -661,7 +661,7 @@ void static BitcoinMiner(CWallet *pwallet)
int32_t nseconds = Mining_start+ROUNDROBIN_DELAY-time(NULL); int32_t nseconds = Mining_start+ROUNDROBIN_DELAY-time(NULL);
if ( nseconds > 0 ) if ( nseconds > 0 )
sleep(nseconds); sleep(nseconds);
MilliSleep((rand() % 4700) + 1); MilliSleep((rand() % 700) + 1);
} }
KOMODO_CHOSEN_ONE = 1; KOMODO_CHOSEN_ONE = 1;
// Found a solution // Found a solution

View File

@@ -715,7 +715,7 @@ int32_t gettxout_scriptPubKey(uint8_t *scriptPubKey,int32_t maxsize,uint256 txid
uint256 hashBlock; uint256 hashBlock;
if ( GetTransaction(txid,tx,hashBlock,true) == 0 ) if ( GetTransaction(txid,tx,hashBlock,true) == 0 )
return(-1); return(-1);
else if ( n < tx.vout.size() ) else //if ( n < tx.vout.size() )
{ {
ptr = (uint8_t *)tx.vout[n].scriptPubKey.data(); ptr = (uint8_t *)tx.vout[n].scriptPubKey.data();
m = tx.vout[n].scriptPubKey.size(); m = tx.vout[n].scriptPubKey.size();