We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bca9a2 commit fdba615Copy full SHA for fdba615
src/llmq/quorums_signing.cpp
@@ -558,10 +558,11 @@ CQuorumCPtr CSigningManager::SelectQuorumForSigning(Consensus::LLMQType llmqType
558
CBlockIndex* pindexStart;
559
{
560
LOCK(cs_main);
561
- if (signHeight - SIGN_HEIGHT_OFFSET > chainActive.Height()) {
+ int startBlockHeight = signHeight - SIGN_HEIGHT_OFFSET;
562
+ if (startBlockHeight > chainActive.Height()) {
563
return nullptr;
564
}
- pindexStart = chainActive[signHeight - SIGN_HEIGHT_OFFSET];
565
+ pindexStart = chainActive[startBlockHeight];
566
567
568
auto quorums = quorumManager->ScanQuorums(llmqType, pindexStart, poolSize);
0 commit comments