Skip to content

Commit d5479f1

Browse files
committed
trivial: add logging for GetEncryptedContributions failures
1 parent b99871a commit d5479f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/llmq/dkgsessionmgr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,15 @@ bool CDKGSessionManager::GetEncryptedContributions(Consensus::LLMQType llmqType,
440440
}
441441
}
442442
if (nRequestedMemberIdx == std::numeric_limits<size_t>::max()) {
443+
LogPrintf("CDKGSessionManager::%s -- not a member, nProTxHash=%s\n", __func__, nProTxHash.ToString());
443444
return false;
444445
}
445446

446447
for (const auto i : irange::range(members.size())) {
447448
if (validMembers[i]) {
448449
CBLSIESMultiRecipientObjects<CBLSSecretKey> encryptedContributions;
449450
if (!db->Read(std::make_tuple(DB_ENC_CONTRIB, llmqType, pQuorumBaseBlockIndex->GetBlockHash(), members[i]->proTxHash), encryptedContributions)) {
451+
LogPrintf("CDKGSessionManager::%s -- can't read from db, nProTxHash=%s\n", __func__, nProTxHash.ToString());
450452
return false;
451453
}
452454
vecRet.emplace_back(encryptedContributions.Get(nRequestedMemberIdx));

0 commit comments

Comments
 (0)