@@ -303,12 +303,12 @@ bool CSigSharesManager::ProcessMessageSigSesAnn(CNode* pfrom, const CSigSesAnn&
303
303
return false ;
304
304
}
305
305
306
- LogPrint (" llmq" , " CSigSharesManager::%s -- ann={%s}, node=%d\n " , __func__, ann.ToString (), pfrom->id );
306
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- ann={%s}, node=%d\n " , __func__, ann.ToString (), pfrom->id );
307
307
308
308
auto quorum = quorumManager->GetQuorum (llmqType, ann.quorumHash );
309
309
if (!quorum) {
310
310
// TODO should we ban here?
311
- LogPrint (" llmq" , " CSigSharesManager::%s -- quorum %s not found, node=%d\n " , __func__,
311
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- quorum %s not found, node=%d\n " , __func__,
312
312
ann.quorumHash .ToString (), pfrom->id );
313
313
return true ; // let's still try other announcements from the same message
314
314
}
@@ -353,12 +353,12 @@ bool CSigSharesManager::ProcessMessageSigSharesInv(CNode* pfrom, const CSigShare
353
353
return true ;
354
354
}
355
355
356
- LogPrint (" llmq" , " CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n " , __func__,
356
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n " , __func__,
357
357
sessionInfo.signHash .ToString (), inv.ToString (), pfrom->id );
358
358
359
359
if (sessionInfo.quorum ->quorumVvec == nullptr ) {
360
360
// TODO we should allow to ask other nodes for the quorum vvec if we missed it in the DKG
361
- LogPrint (" llmq" , " CSigSharesManager::%s -- we don't have the quorum vvec for %s, not requesting sig shares. node=%d\n " , __func__,
361
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- we don't have the quorum vvec for %s, not requesting sig shares. node=%d\n " , __func__,
362
362
sessionInfo.quorumHash .ToString (), pfrom->id );
363
363
return true ;
364
364
}
@@ -390,7 +390,7 @@ bool CSigSharesManager::ProcessMessageGetSigShares(CNode* pfrom, const CSigShare
390
390
return true ;
391
391
}
392
392
393
- LogPrint (" llmq" , " CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n " , __func__,
393
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n " , __func__,
394
394
sessionInfo.signHash .ToString (), inv.ToString (), pfrom->id );
395
395
396
396
LOCK (cs);
@@ -444,7 +444,7 @@ bool CSigSharesManager::ProcessMessageBatchedSigShares(CNode* pfrom, const CBatc
444
444
}
445
445
}
446
446
447
- LogPrint (" llmq" , " CSigSharesManager::%s -- signHash=%s, shares=%d, new=%d, inv={%s}, node=%d\n " , __func__,
447
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- signHash=%s, shares=%d, new=%d, inv={%s}, node=%d\n " , __func__,
448
448
sessionInfo.signHash .ToString (), batchedSigShares.sigShares .size (), sigShares.size (), batchedSigShares.ToInvString (), pfrom->id );
449
449
450
450
if (sigShares.empty ()) {
@@ -473,7 +473,7 @@ bool CSigSharesManager::PreVerifyBatchedSigShares(NodeId nodeId, const CSigShare
473
473
}
474
474
if (session.quorum ->quorumVvec == nullptr ) {
475
475
// TODO we should allow to ask other nodes for the quorum vvec if we missed it in the DKG
476
- LogPrint (" llmq" , " CSigSharesManager::%s -- we don't have the quorum vvec for %s, no verification possible. node=%d\n " , __func__,
476
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- we don't have the quorum vvec for %s, no verification possible. node=%d\n " , __func__,
477
477
session.quorumHash .ToString (), nodeId);
478
478
return false ;
479
479
}
@@ -614,7 +614,7 @@ bool CSigSharesManager::ProcessPendingSigShares(CConnman& connman)
614
614
batchVerifier.Verify ();
615
615
verifyTimer.stop ();
616
616
617
- LogPrint (" llmq" , " CSigSharesManager::%s -- verified sig shares. count=%d, vt=%d, nodes=%d\n " , __func__, verifyCount, verifyTimer.count (), sigSharesByNodes.size ());
617
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- verified sig shares. count=%d, vt=%d, nodes=%d\n " , __func__, verifyCount, verifyTimer.count (), sigSharesByNodes.size ());
618
618
619
619
for (auto & p : sigSharesByNodes) {
620
620
auto nodeId = p.first ;
@@ -649,7 +649,7 @@ void CSigSharesManager::ProcessPendingSigSharesFromNode(NodeId nodeId,
649
649
}
650
650
t.stop ();
651
651
652
- LogPrint (" llmq" , " CSigSharesManager::%s -- processed sigShare batch. shares=%d, time=%d, node=%d\n " , __func__,
652
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- processed sigShare batch. shares=%d, time=%d, node=%d\n " , __func__,
653
653
sigShares.size (), t.count (), nodeId);
654
654
}
655
655
@@ -754,7 +754,7 @@ void CSigSharesManager::TryRecoverSig(const CQuorumCPtr& quorum, const uint256&
754
754
return ;
755
755
}
756
756
757
- LogPrint (" llmq" , " CSigSharesManager::%s -- recovered signature. id=%s, msgHash=%s, time=%d\n " , __func__,
757
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- recovered signature. id=%s, msgHash=%s, time=%d\n " , __func__,
758
758
id.ToString (), msgHash.ToString (), t.count ());
759
759
760
760
CRecoveredSig rs;
@@ -805,7 +805,7 @@ void CSigSharesManager::CollectSigSharesToRequest(std::unordered_map<NodeId, std
805
805
nodeState.requestedSigShares .EraseIf ([&](const SigShareKey& k, int64_t t) {
806
806
if (now - t >= SIG_SHARE_REQUEST_TIMEOUT) {
807
807
// timeout while waiting for this one, so retry it with another node
808
- LogPrint (" llmq" , " CSigSharesManager::CollectSigSharesToRequest -- timeout while waiting for %s-%d, node=%d\n " ,
808
+ LogPrint (" llmq-sigs " , " CSigSharesManager::CollectSigSharesToRequest -- timeout while waiting for %s-%d, node=%d\n " ,
809
809
k.first .ToString (), k.second , nodeId);
810
810
return true ;
811
811
}
@@ -840,7 +840,7 @@ void CSigSharesManager::CollectSigSharesToRequest(std::unordered_map<NodeId, std
840
840
if (p) {
841
841
if (now - p->second >= SIG_SHARE_REQUEST_TIMEOUT && nodeId != p->first ) {
842
842
// other node timed out, re-request from this node
843
- LogPrint (" llmq" , " CSigSharesManager::%s -- other node timeout while waiting for %s-%d, re-request from=%d, node=%d\n " , __func__,
843
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- other node timeout while waiting for %s-%d, re-request from=%d, node=%d\n " , __func__,
844
844
k.first .ToString (), k.second , nodeId, p->first );
845
845
} else {
846
846
continue ;
@@ -1043,7 +1043,7 @@ bool CSigSharesManager::SendMessages()
1043
1043
std::vector<CSigSesAnn> msgs;
1044
1044
msgs.reserve (it1->second .size ());
1045
1045
for (auto & sigSesAnn : it1->second ) {
1046
- LogPrint (" llmq" , " CSigSharesManager::SendMessages -- QSIGSESANN signHash=%s, sessionId=%d, node=%d\n " ,
1046
+ LogPrint (" llmq-sigs " , " CSigSharesManager::SendMessages -- QSIGSESANN signHash=%s, sessionId=%d, node=%d\n " ,
1047
1047
CLLMQUtils::BuildSignHash (sigSesAnn).ToString (), sigSesAnn.sessionId , pnode->id );
1048
1048
msgs.emplace_back (sigSesAnn);
1049
1049
if (msgs.size () == MAX_MSGS_CNT_QSIGSESANN) {
@@ -1063,7 +1063,7 @@ bool CSigSharesManager::SendMessages()
1063
1063
std::vector<CSigSharesInv> msgs;
1064
1064
for (auto & p : it->second ) {
1065
1065
assert (p.second .CountSet () != 0 );
1066
- LogPrint (" llmq" , " CSigSharesManager::SendMessages -- QGETSIGSHARES signHash=%s, inv={%s}, node=%d\n " ,
1066
+ LogPrint (" llmq-sigs " , " CSigSharesManager::SendMessages -- QGETSIGSHARES signHash=%s, inv={%s}, node=%d\n " ,
1067
1067
p.first .ToString (), p.second .ToString (), pnode->id );
1068
1068
msgs.emplace_back (std::move (p.second ));
1069
1069
if (msgs.size () == MAX_MSGS_CNT_QGETSIGSHARES) {
@@ -1084,7 +1084,7 @@ bool CSigSharesManager::SendMessages()
1084
1084
std::vector<CBatchedSigShares> msgs;
1085
1085
for (auto & p : jt->second ) {
1086
1086
assert (!p.second .sigShares .empty ());
1087
- LogPrint (" llmq" , " CSigSharesManager::SendMessages -- QBSIGSHARES signHash=%s, inv={%s}, node=%d\n " ,
1087
+ LogPrint (" llmq-sigs " , " CSigSharesManager::SendMessages -- QBSIGSHARES signHash=%s, inv={%s}, node=%d\n " ,
1088
1088
p.first .ToString (), p.second .ToInvString (), pnode->id );
1089
1089
if (totalSigsCount + p.second .sigShares .size () > MAX_MSGS_TOTAL_BATCHED_SIGS) {
1090
1090
g_connman->PushMessage (pnode, msgMaker.Make (NetMsgType::QBSIGSHARES, msgs), false );
@@ -1107,7 +1107,7 @@ bool CSigSharesManager::SendMessages()
1107
1107
std::vector<CSigSharesInv> msgs;
1108
1108
for (auto & p : kt->second ) {
1109
1109
assert (p.second .CountSet () != 0 );
1110
- LogPrint (" llmq" , " CSigSharesManager::SendMessages -- QSIGSHARESINV signHash=%s, inv={%s}, node=%d\n " ,
1110
+ LogPrint (" llmq-sigs " , " CSigSharesManager::SendMessages -- QSIGSHARESINV signHash=%s, inv={%s}, node=%d\n " ,
1111
1111
p.first .ToString (), p.second .ToString (), pnode->id );
1112
1112
msgs.emplace_back (std::move (p.second ));
1113
1113
if (msgs.size () == MAX_MSGS_CNT_QSIGSHARESINV) {
@@ -1249,10 +1249,10 @@ void CSigSharesManager::Cleanup()
1249
1249
}
1250
1250
}
1251
1251
1252
- LogPrint (" llmq" , " CSigSharesManager::%s -- signing session timed out. signHash=%s, id=%s, msgHash=%s, sigShareCount=%d, missingMembers=%s\n " , __func__,
1252
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- signing session timed out. signHash=%s, id=%s, msgHash=%s, sigShareCount=%d, missingMembers=%s\n " , __func__,
1253
1253
signHash.ToString (), oneSigShare.id .ToString (), oneSigShare.msgHash .ToString (), count, strMissingMembers);
1254
1254
} else {
1255
- LogPrint (" llmq" , " CSigSharesManager::%s -- signing session timed out. signHash=%s, sigShareCount=%d\n " , __func__,
1255
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- signing session timed out. signHash=%s, sigShareCount=%d\n " , __func__,
1256
1256
signHash.ToString (), count);
1257
1257
}
1258
1258
RemoveSigSharesForSession (signHash);
@@ -1408,7 +1408,7 @@ void CSigSharesManager::Sign(const CQuorumCPtr& quorum, const uint256& id, const
1408
1408
1409
1409
CBLSSecretKey skShare = quorum->GetSkShare ();
1410
1410
if (!skShare.IsValid ()) {
1411
- LogPrint (" llmq" , " CSigSharesManager::%s -- we don't have our skShare for quorum %s\n " , __func__, quorum->quorumHash .ToString ());
1411
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- we don't have our skShare for quorum %s\n " , __func__, quorum->quorumHash .ToString ());
1412
1412
return ;
1413
1413
}
1414
1414
@@ -1435,7 +1435,7 @@ void CSigSharesManager::Sign(const CQuorumCPtr& quorum, const uint256& id, const
1435
1435
1436
1436
sigShare.UpdateKey ();
1437
1437
1438
- LogPrint (" llmq" , " CSigSharesManager::%s -- signed sigShare. signHash=%s, id=%s, msgHash=%s, time=%s\n " , __func__,
1438
+ LogPrint (" llmq-sigs " , " CSigSharesManager::%s -- signed sigShare. signHash=%s, id=%s, msgHash=%s, time=%s\n " , __func__,
1439
1439
signHash.ToString (), sigShare.id .ToString (), sigShare.msgHash .ToString (), t.count ());
1440
1440
ProcessSigShare (-1 , sigShare, *g_connman, quorum);
1441
1441
}
0 commit comments