We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7bb90f commit b2d150aCopy full SHA for b2d150a
src/llmq/quorums_signing.cpp
@@ -562,10 +562,11 @@ CQuorumCPtr CSigningManager::SelectQuorumForSigning(Consensus::LLMQType llmqType
562
uint256 startBlock;
563
{
564
LOCK(cs_main);
565
- if (signHeight - SIGN_HEIGHT_OFFSET > chainActive.Height()) {
+ int startBlockHeight = signHeight - SIGN_HEIGHT_OFFSET;
566
+ if (startBlockHeight > chainActive.Height()) {
567
return nullptr;
568
}
- startBlock = chainActive[signHeight - SIGN_HEIGHT_OFFSET]->GetBlockHash();
569
+ startBlock = chainActive[startBlockHeight]->GetBlockHash();
570
571
572
auto quorums = quorumManager->ScanQuorums(llmqType, startBlock, poolSize);
0 commit comments