@@ -515,7 +515,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
515
515
}
516
516
auto spend = TxInToZerocoinSpend (pblock->vtx [1 ]->vin [0 ]);
517
517
if (!spend) {
518
- LogPrint (BCLog::BLOCKCREATION , " %s: failed to get spend for txin" , __func__);
518
+ LogPrint (BCLog::STAKING , " %s: failed to get spend for txin" , __func__);
519
519
return nullptr ;
520
520
}
521
521
@@ -525,17 +525,17 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
525
525
#ifdef ENABLE_WALLET
526
526
if (gArgs .GetBoolArg (" -disablewallet" , DEFAULT_DISABLE_WALLET) || !pwalletMain->GetZerocoinKey (bnSerial, key)) {
527
527
#endif
528
- LogPrint (BCLog::BLOCKCREATION , " %s: Failed to get zerocoin key from wallet!\n " , __func__);
528
+ LogPrint (BCLog::STAKING , " %s: Failed to get zerocoin key from wallet!\n " , __func__);
529
529
return nullptr ;
530
530
#ifdef ENABLE_WALLET
531
531
}
532
532
#endif
533
533
534
534
if (!key.Sign (pblock->GetHash (), pblock->vchBlockSig )) {
535
- LogPrint (BCLog::BLOCKCREATION , " %s: Failed to sign block hash\n " , __func__);
535
+ LogPrint (BCLog::STAKING , " %s: Failed to sign block hash\n " , __func__);
536
536
return nullptr ;
537
537
}
538
- LogPrint (BCLog::BLOCKCREATION , " %s: FOUND STAKE!!\n block: \n %s\n " , __func__, pblock->ToString ());
538
+ LogPrint (BCLog::STAKING , " %s: FOUND STAKE!!\n block: \n %s\n " , __func__, pblock->ToString ());
539
539
}
540
540
541
541
if (pindexPrev && pindexPrev != chainActive.Tip ()) {
@@ -932,7 +932,7 @@ void BitcoinMiner(std::shared_ptr<CReserveScript> coinbaseScript, bool fProofOfS
932
932
auto it = mapStakeHashCounter.find (nHeight);
933
933
if (it != mapStakeHashCounter.end () && it->second != nStakeHashesLast) {
934
934
nStakeHashesLast = it->second ;
935
- LogPrint (BCLog::BLOCKCREATION , " %s: Tried %d stake hashes for block %d last=%d\n " , __func__, nStakeHashesLast, nHeight+1 , mapHashedBlocks.at (hashBestBlock));
935
+ LogPrint (BCLog::STAKING , " %s: Tried %d stake hashes for block %d last=%d\n " , __func__, nStakeHashesLast, nHeight+1 , mapHashedBlocks.at (hashBestBlock));
936
936
}
937
937
// wait half of the nHashDrift with max wait of 3 minutes
938
938
int rand = GetRandInt (20 ); // add small randomness to prevent all nodes from being on too similar of timing
0 commit comments