@@ -878,8 +878,11 @@ void CSigningManager::UnregisterRecoveredSigsListener(CRecoveredSigsListener* l)
878878
879879bool CSigningManager::AsyncSignIfMember (Consensus::LLMQType llmqType, CSigSharesManager& shareman, const uint256& id, const uint256& msgHash, const uint256& quorumHash, bool allowReSign)
880880{
881+ LogPrintf (" CSigningManager::AsyncSignIfMember id=%s\n " , id.ToString ());
881882 if (m_mn_activeman == nullptr ) return false ;
883+ LogPrintf (" CSigningManager::AsyncSignIfMember id=%s that's mn_activeman\n " , id.ToString ());
882884 if (m_mn_activeman->GetProTxHash ().IsNull ()) return false ;
885+ LogPrintf (" CSigningManager::AsyncSignIfMember id=%s protx=%s\n " , id.ToString (), m_mn_activeman->GetProTxHash ().ToString ());
883886
884887 const CQuorumCPtr quorum = [&]() {
885888 if (quorumHash.IsNull ()) {
@@ -902,6 +905,7 @@ bool CSigningManager::AsyncSignIfMember(Consensus::LLMQType llmqType, CSigShares
902905 }
903906
904907 if (!quorum->IsValidMember (m_mn_activeman->GetProTxHash ())) {
908+ LogPrintf (" CSigningManager::AsyncSignIfMember id=%s not a member of quorum=%s\n " , id.ToString (), quorum->qc ->quorumHash .ToString ());
905909 return false ;
906910 }
907911
@@ -925,18 +929,22 @@ bool CSigningManager::AsyncSignIfMember(Consensus::LLMQType llmqType, CSigShares
925929 }
926930
927931 if (db.HasRecoveredSigForId (llmqType, id)) {
932+ LogPrintf (" CSigningManager::AsyncSignIfMemeber hasRecoveredSig id=%s\n " , id.ToString ());
928933 // no need to sign it if we already have a recovered sig
929934 return true ;
930935 }
931936 if (!hasVoted) {
932937 db.WriteVoteForId (llmqType, id, msgHash);
938+ } else {
939+ LogPrintf (" CSigningManager::AsyncSignIfMemeber has voted id=%s\n " , id.ToString ());
933940 }
934941 }
935942
936943 if (allowReSign) {
937944 // make us re-announce all known shares (other nodes might have run into a timeout)
938945 shareman.ForceReAnnouncement (quorum, llmqType, id, msgHash);
939946 }
947+ LogPrintf (" CSigningManager::AsyncSignIfMemeber call async sign for id=%s msgHash=%s\n " , id.ToString (), msgHash.ToString ());
940948 shareman.AsyncSign (quorum, id, msgHash);
941949
942950 return true ;
0 commit comments