We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd96032 commit 9b6e7c2Copy full SHA for 9b6e7c2
src/llmq/chainlocks.cpp
@@ -519,7 +519,10 @@ MessageProcessingResult CChainLocksHandler::HandleNewRecoveredSig(const llmq::CR
519
// already got the same or a better CLSIG through the CLSIG message
520
return {};
521
}
522
-
+ if (m_chainstate.m_chain.Tip()->GetAncestor(lastSignedHeight)->GetBlockHash() != lastSignedMsgHash) {
523
+ // we switched to a different fork while we were signing
524
+ return {};
525
+ }
526
527
clsig = CChainLockSig(lastSignedHeight, lastSignedMsgHash, recoveredSig.sig.Get());
528
0 commit comments