test
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user