Skip to content

Commit 3509e55

Browse files
committed
feat: a bit of extra logs when no DB_VVEC in database
1 parent 68dec34 commit 3509e55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/llmq/dkgsessionmgr.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ bool CDKGSessionManager::GetVerifiedContributions(Consensus::LLMQType llmqType,
317317
if (it == contributionsCache.end()) {
318318
CDataStream s(SER_DISK, CLIENT_VERSION);
319319
if (!db->ReadDataStream(std::make_tuple(DB_VVEC, llmqType, pQuorumBaseBlockIndex->GetBlockHash(), proTxHash), s)) {
320+
LogPrint(BCLog::LLMQ, "%s -- this node does not have vvec for llmq=%d block=%s protx=%s\n",
321+
__func__, ToUnderlying(llmqType), pQuorumBaseBlockIndex->GetBlockHash().ToString(),
322+
proTxHash.ToString());
320323
return false;
321324
}
322325
size_t vvec_size = ReadCompactSize(s);

0 commit comments

Comments
 (0)