fix
This commit is contained in:
@@ -769,7 +769,7 @@ CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey, int32_t nHeight,
|
|||||||
scriptPubKey = CScript() << ParseHex(NOTARY_PUBKEY) << OP_CHECKSIG;
|
scriptPubKey = CScript() << ParseHex(NOTARY_PUBKEY) << OP_CHECKSIG;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
if (!isStake && ASSETCHAINS_STAKED != 0)
|
if (!isStake || ASSETCHAINS_STAKED != 0)
|
||||||
{
|
{
|
||||||
if (!reservekey.GetReservedKey(pubkey))
|
if (!reservekey.GetReservedKey(pubkey))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -344,7 +344,10 @@ UniValue setgenerate(const UniValue& params, bool fHelp)
|
|||||||
{
|
{
|
||||||
VERUS_MINTBLOCKS = 1;
|
VERUS_MINTBLOCKS = 1;
|
||||||
fGenerate = GetBoolArg("-gen", false);
|
fGenerate = GetBoolArg("-gen", false);
|
||||||
nGenProcLimit = KOMODO_MININGTHREADS;
|
if ( ASSETCHAINS_STAKED != 0 )
|
||||||
|
nGenProcLimit = KOMODO_MININGTHREADS;
|
||||||
|
else
|
||||||
|
KOMODO_MININGTHREADS = nGenProcLimit;
|
||||||
}
|
}
|
||||||
else if (!fGenerate)
|
else if (!fGenerate)
|
||||||
{
|
{
|
||||||
@@ -353,8 +356,6 @@ UniValue setgenerate(const UniValue& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
else KOMODO_MININGTHREADS = (int32_t)nGenProcLimit;
|
else KOMODO_MININGTHREADS = (int32_t)nGenProcLimit;
|
||||||
|
|
||||||
fprintf(stderr, "BEFORE MAP miningthreads.%i generate.%i\n",KOMODO_MININGTHREADS,(fGenerate ? 1 : 0));
|
|
||||||
|
|
||||||
mapArgs["-gen"] = (fGenerate ? "1" : "0");
|
mapArgs["-gen"] = (fGenerate ? "1" : "0");
|
||||||
mapArgs ["-genproclimit"] = itostr(KOMODO_MININGTHREADS);
|
mapArgs ["-genproclimit"] = itostr(KOMODO_MININGTHREADS);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user