This commit is contained in:
jl777
2016-11-29 18:16:56 -03:00
parent 71e8e95fb6
commit 5aab039262
2 changed files with 9 additions and 2 deletions

View File

@@ -450,6 +450,7 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int&
//
// Internal miner
//
int8_t komodo_minerid(int32_t height);
CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey)
{
@@ -472,6 +473,12 @@ CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey)
script[34] = OP_CHECKSIG;
//scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
}
if ( ASSETCHAINS_SYMBOL[0] == 0 )
{
for (i=0; i<65; i++)
fprintf(stderr,"%d ",komodo_minerid(activeChain.Tip()->nHeight-i));
fprintf(stderr," minerids from ht.%d\n",activeChain.Tip()->nHeight);
}
return CreateNewBlock(scriptPubKey);
}
@@ -739,7 +746,7 @@ void static BitcoinMiner(CWallet *pwallet)
// Regtest mode doesn't require peers
if (vNodes.empty() && chainparams.MiningRequiresPeers())
{
if ( ASSETCHAINS_SYMBOL[0] == 0 || Mining_height >= 100 )
if ( ASSETCHAINS_SYMBOL[0] == 0 || Mining_height > 100 )
{
//fprintf(stderr,"no nodes, break\n");
break;