Browse Source

Test

pull/4/head
jl777 7 years ago
parent
commit
ba8419c7a0
  1. 12
      src/miner.cpp

12
src/miner.cpp

@ -511,7 +511,19 @@ static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& rese
{
LOCK(cs_main);
if (pblock->hashPrevBlock != chainActive.Tip()->GetBlockHash())
{
uint256 hash; int32_t i;
hash = pblock->hashPrevBlock;
for (i=0; i<32; i++)
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
fprintf(stderr," <- prev\n");
hash = chainActive.Tip()->GetBlockHash();
for (i=0; i<32; i++)
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
fprintf(stderr," <- chainTip\n");
return error("KomodoMiner: generated block is stale");
}
}
// Remove key from key pool

Loading…
Cancel
Save