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 dd96032 commit 0fc0becCopy full SHA for 0fc0bec
src/llmq/chainlocks.cpp
@@ -519,7 +519,11 @@ MessageProcessingResult CChainLocksHandler::HandleNewRecoveredSig(const llmq::CR
519
// already got the same or a better CLSIG through the CLSIG message
520
return {};
521
}
522
-
+ const auto pindex = m_chainstate.m_chain.Tip()->GetAncestor(lastSignedHeight);
523
+ if (pindex == nullptr || pindex->GetBlockHash() != lastSignedMsgHash) {
524
+ // we switched to a different fork while we were signing
525
+ return {};
526
+ }
527
528
clsig = CChainLockSig(lastSignedHeight, lastSignedMsgHash, recoveredSig.sig.Get());
529
0 commit comments