@@ -299,7 +299,7 @@ void CSigningManager::ProcessMessageRecoveredSig(CNode* pfrom, const CRecoveredS
299299 return ;
300300 }
301301
302- LogPrintf ( " llmq " , " CSigningManager::%s -- signHash=%s, node=%d\n " , __func__, llmq::utils::BuildSignHash (recoveredSig).ToString (), pfrom->GetId ());
302+ LogPrint (BCLog::LLMQ , " CSigningManager::%s -- signHash=%s, node=%d\n " , __func__, llmq::utils::BuildSignHash (recoveredSig).ToString (), pfrom->GetId ());
303303
304304 LOCK (cs);
305305 pendingRecoveredSigs[pfrom->GetId ()].emplace_back (recoveredSig);
@@ -318,7 +318,7 @@ bool CSigningManager::PreVerifyRecoveredSig(NodeId nodeId, const CRecoveredSig&
318318 CQuorumCPtr quorum = quorumManager->GetQuorum (llmqType, recoveredSig.quorumHash );
319319
320320 if (!quorum) {
321- LogPrintf ( " CSigningManager::%s -- quorum %s not found, node=%d\n " , __func__,
321+ LogPrint (BCLog::LLMQ, " CSigningManager::%s -- quorum %s not found, node=%d\n " , __func__,
322322 recoveredSig.quorumHash .ToString (), nodeId);
323323 return false ;
324324 }
@@ -377,13 +377,13 @@ void CSigningManager::CollectPendingRecoveredSigsToVerify(
377377 if (!retQuorums.count (quorumKey)) {
378378 CQuorumCPtr quorum = quorumManager->GetQuorum (llmqType, recSig.quorumHash );
379379 if (!quorum) {
380- LogPrintf ( " CSigningManager::%s -- quorum %s not found, node=%d\n " , __func__,
380+ LogPrint (BCLog::LLMQ, " CSigningManager::%s -- quorum %s not found, node=%d\n " , __func__,
381381 recSig.quorumHash .ToString (), nodeId);
382382 it = v.erase (it);
383383 continue ;
384384 }
385385 if (!llmq::utils::IsQuorumActive (llmqType, quorum->pindexQuorum ->GetBlockHash ())) {
386- LogPrintf ( " CSigningManager::%s -- quorum %s not active anymore, node=%d\n " , __func__,
386+ LogPrint (BCLog::LLMQ, " CSigningManager::%s -- quorum %s not active anymore, node=%d\n " , __func__,
387387 recSig.quorumHash .ToString (), nodeId);
388388 it = v.erase (it);
389389 continue ;
@@ -427,7 +427,7 @@ bool CSigningManager::ProcessPendingRecoveredSigs(CConnman& connman)
427427 batchVerifier.Verify ();
428428 verifyTimer.stop ();
429429
430- LogPrintf ( " llmq " , " CSigningManager::%s -- verified recovered sig(s). count=%d, vt=%d, nodes=%d\n " , __func__, verifyCount, verifyTimer.count (), recSigsByNode.size ());
430+ LogPrint (BCLog::LLMQ , " CSigningManager::%s -- verified recovered sig(s). count=%d, vt=%d, nodes=%d\n " , __func__, verifyCount, verifyTimer.count (), recSigsByNode.size ());
431431
432432 std::unordered_set<uint256, StaticSaltedHasher> processed;
433433 for (auto & p : recSigsByNode) {
@@ -436,7 +436,7 @@ bool CSigningManager::ProcessPendingRecoveredSigs(CConnman& connman)
436436
437437 if (batchVerifier.badSources .count (nodeId)) {
438438 LOCK (cs_main);
439- LogPrintf (" llmq " , " CSigningManager::%s -- invalid recSig from other node, banning peer=%d\n " , __func__, nodeId);
439+ LogPrintf (" CSigningManager::%s -- invalid recSig from other node, banning peer=%d\n " , __func__, nodeId);
440440 Misbehaving (nodeId, 100 );
441441 continue ;
442442 }
@@ -470,7 +470,7 @@ void CSigningManager::ProcessRecoveredSig(NodeId nodeId, const CRecoveredSig& re
470470
471471 auto signHash = llmq::utils::BuildSignHash (recoveredSig);
472472
473- LogPrintf ( " CSigningManager::%s -- valid recSig. signHash=%s, id=%s, msgHash=%s, node=%d\n " , __func__,
473+ LogPrint (BCLog::LLMQ, " CSigningManager::%s -- valid recSig. signHash=%s, id=%s, msgHash=%s, node=%d\n " , __func__,
474474 signHash.ToString (), recoveredSig.id .ToString (), recoveredSig.msgHash .ToString (), nodeId);
475475
476476 if (db.HasRecoveredSigForId (llmqType, recoveredSig.id )) {
@@ -550,7 +550,7 @@ bool CSigningManager::AsyncSignIfMember(Consensus::LLMQType llmqType, const uint
550550 LogPrintf (" CSigningManager::%s -- already voted for id=%s and msgHash=%s. Not voting on conflicting msgHash=%s\n " , __func__,
551551 id.ToString (), prevMsgHash.ToString (), msgHash.ToString ());
552552 } else {
553- LogPrintf ( " CSigningManager::%s -- already voted for id=%s and msgHash=%s. Not voting again.\n " , __func__,
553+ LogPrint (BCLog::LLMQ, " CSigningManager::%s -- already voted for id=%s and msgHash=%s. Not voting again.\n " , __func__,
554554 id.ToString (), prevMsgHash.ToString ());
555555 }
556556 return false ;
@@ -576,12 +576,12 @@ bool CSigningManager::AsyncSignIfMember(Consensus::LLMQType llmqType, const uint
576576 // TODO fix this by re-signing when the next block arrives, but only when that block results in a change of the quorum list and no recovered signature has been created in the mean time
577577 CQuorumCPtr quorum = SelectQuorumForSigning (llmqType, tipHeight, id);
578578 if (!quorum) {
579- LogPrintf ( " CSigningManager::%s -- failed to select quorum. id=%s, msgHash=%s\n " , __func__, id.ToString (), msgHash.ToString ());
579+ LogPrint (BCLog::LLMQ, " CSigningManager::%s -- failed to select quorum. id=%s, msgHash=%s\n " , __func__, id.ToString (), msgHash.ToString ());
580580 return false ;
581581 }
582582
583583 if (!quorum->IsValidMember (activeMasternodeManager->GetProTx ())) {
584- // LogPrintf( "CSigningManager::%s -- we're not a valid member of quorum %s\n", __func__, quorum->quorumHash.ToString());
584+ // LogPrint(BCLog::LLMQ, "CSigningManager::%s -- we're not a valid member of quorum %s\n", __func__, quorum->quorumHash.ToString());
585585 return false ;
586586 }
587587
0 commit comments