Use BitcoinMiner for staking verushash
This commit is contained in:
@@ -1322,7 +1322,7 @@ uint32_t komodo_stake(int32_t validateflag,arith_uint256 bnTarget,int32_t nHeigh
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//fprintf(stderr,"iterated until i.%d winner.%d\n",i,winner);
|
//fprintf(stderr,"iterated until i.%d winner.%d\n",i,winner);
|
||||||
//if ( 0 && validateflag != 0 )
|
if ( 0 && validateflag != 0 )
|
||||||
{
|
{
|
||||||
for (i=31; i>=24; i--)
|
for (i=31; i>=24; i--)
|
||||||
fprintf(stderr,"%02x",((uint8_t *)&hashval)[i]);
|
fprintf(stderr,"%02x",((uint8_t *)&hashval)[i]);
|
||||||
|
|||||||
@@ -1907,12 +1907,12 @@ void static BitcoinMiner()
|
|||||||
for (int i = 0; i < nThreads; i++) {
|
for (int i = 0; i < nThreads; i++) {
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
if (ASSETCHAINS_ALGO == ASSETCHAINS_EQUIHASH)
|
if (ASSETCHAINS_ALGO == ASSETCHAINS_EQUIHASH || (ASSETCHAINS_STAKED != 0 && KOMODO_MININGTHREADS == 0) )
|
||||||
minerThreads->create_thread(boost::bind(&BitcoinMiner, pwallet));
|
minerThreads->create_thread(boost::bind(&BitcoinMiner, pwallet));
|
||||||
else
|
else
|
||||||
minerThreads->create_thread(boost::bind(&BitcoinMiner_noeq, pwallet));
|
minerThreads->create_thread(boost::bind(&BitcoinMiner_noeq, pwallet));
|
||||||
#else
|
#else
|
||||||
if (ASSETCHAINS_ALGO == ASSETCHAINS_EQUIHASH)
|
if (ASSETCHAINS_ALGO == ASSETCHAINS_EQUIHASH || (ASSETCHAINS_STAKED != 0 && KOMODO_MININGTHREADS == 0) )
|
||||||
minerThreads->create_thread(&BitcoinMiner);
|
minerThreads->create_thread(&BitcoinMiner);
|
||||||
else
|
else
|
||||||
minerThreads->create_thread(&BitcoinMiner_noeq);
|
minerThreads->create_thread(&BitcoinMiner_noeq);
|
||||||
|
|||||||
Reference in New Issue
Block a user