Skip to content

Commit ce6b7d1

Browse files
committed
Correctly use SIGN_HEIGHT_OFFSET when checking for out of bound height
1 parent c71cab5 commit ce6b7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llmq/quorums_signing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ CQuorumCPtr CSigningManager::SelectQuorumForSigning(Consensus::LLMQType llmqType
562562
uint256 startBlock;
563563
{
564564
LOCK(cs_main);
565-
if (signHeight > chainActive.Height()) {
565+
if (signHeight - SIGN_HEIGHT_OFFSET > chainActive.Height()) {
566566
return nullptr;
567567
}
568568
startBlock = chainActive[signHeight - SIGN_HEIGHT_OFFSET]->GetBlockHash();

0 commit comments

Comments
 (0)