@@ -86,7 +86,7 @@ bool CChainLocksHandler::AlreadyHave(const CInv& inv) const
8686    return  seenChainLocks.count (inv.hash ) != 0 ;
8787}
8888
89- bool  CChainLocksHandler::GetChainLockByHash (const  uint256& hash, llmq::CChainLockSig & ret) const 
89+ bool  CChainLocksHandler::GetChainLockByHash (const  uint256& hash, chainlock::ChainLockSig & ret) const 
9090{
9191    LOCK (cs);
9292
@@ -99,13 +99,13 @@ bool CChainLocksHandler::GetChainLockByHash(const uint256& hash, llmq::CChainLoc
9999    return  true ;
100100}
101101
102- CChainLockSig  CChainLocksHandler::GetBestChainLock () const 
102+ chainlock::ChainLockSig  CChainLocksHandler::GetBestChainLock () const 
103103{
104104    LOCK (cs);
105105    return  bestChainLock;
106106}
107107
108- MessageProcessingResult CChainLocksHandler::ProcessNewChainLock (const  NodeId from, const  llmq::CChainLockSig & clsig,
108+ MessageProcessingResult CChainLocksHandler::ProcessNewChainLock (const  NodeId from, const  chainlock::ChainLockSig & clsig,
109109                                                                const  uint256& hash)
110110{
111111    CheckActiveState ();
@@ -221,7 +221,7 @@ void CChainLocksHandler::CheckActiveState()
221221        //  to disable spork19)
222222        LOCK (cs);
223223        bestChainLockHash = uint256 ();
224-         bestChainLock = bestChainLockWithKnownBlock = CChainLockSig ();
224+         bestChainLock = bestChainLockWithKnownBlock = chainlock::ChainLockSig ();
225225        bestChainLockBlockIndex = lastNotifyChainLockBlockIndex = nullptr ;
226226    }
227227}
@@ -325,7 +325,7 @@ void CChainLocksHandler::TrySignChainTip(const llmq::CInstantSendManager& isman)
325325        }
326326    }
327327
328-     uint256 requestId = ::SerializeHash (std::make_pair (CLSIG_REQUESTID_PREFIX, pindex->nHeight ));
328+     uint256 requestId = ::SerializeHash (std::make_pair (chainlock:: CLSIG_REQUESTID_PREFIX, pindex->nHeight ));
329329    uint256 msgHash = pindex->GetBlockHash ();
330330
331331    {
@@ -461,7 +461,7 @@ void CChainLocksHandler::EnforceBestChainLock()
461461    AssertLockNotHeld (cs);
462462    AssertLockNotHeld (cs_main);
463463
464-     std::shared_ptr<CChainLockSig > clsig;
464+     std::shared_ptr<chainlock::ChainLockSig > clsig;
465465    const  CBlockIndex* pindex;
466466    const  CBlockIndex* currentBestChainLockBlockIndex;
467467    {
@@ -471,7 +471,7 @@ void CChainLocksHandler::EnforceBestChainLock()
471471            return ;
472472        }
473473
474-         clsig = std::make_shared<CChainLockSig >(bestChainLockWithKnownBlock);
474+         clsig = std::make_shared<chainlock::ChainLockSig >(bestChainLockWithKnownBlock);
475475        pindex = currentBestChainLockBlockIndex = this ->bestChainLockBlockIndex ;
476476
477477        if  (currentBestChainLockBlockIndex == nullptr ) {
@@ -517,7 +517,7 @@ MessageProcessingResult CChainLocksHandler::HandleNewRecoveredSig(const llmq::CR
517517        return  {};
518518    }
519519
520-     CChainLockSig  clsig;
520+     chainlock::ChainLockSig  clsig;
521521    {
522522        LOCK (cs);
523523
@@ -531,7 +531,7 @@ MessageProcessingResult CChainLocksHandler::HandleNewRecoveredSig(const llmq::CR
531531        }
532532
533533
534-         clsig = CChainLockSig (lastSignedHeight, lastSignedMsgHash, recoveredSig.sig .Get ());
534+         clsig = chainlock::ChainLockSig (lastSignedHeight, lastSignedMsgHash, recoveredSig.sig .Get ());
535535    }
536536    return  ProcessNewChainLock (-1 , clsig, ::SerializeHash (clsig));
537537}
@@ -543,10 +543,10 @@ bool CChainLocksHandler::HasChainLock(int nHeight, const uint256& blockHash) con
543543}
544544
545545
546- VerifyRecSigStatus CChainLocksHandler::VerifyChainLock (const  CChainLockSig & clsig) const 
546+ VerifyRecSigStatus CChainLocksHandler::VerifyChainLock (const  chainlock::ChainLockSig & clsig) const 
547547{
548548    const  auto  llmqType = Params ().GetConsensus ().llmqTypeChainLocks ;
549-     const  uint256 nRequestId = ::SerializeHash (std::make_pair (llmq ::CLSIG_REQUESTID_PREFIX, clsig.getHeight ()));
549+     const  uint256 nRequestId = ::SerializeHash (std::make_pair (chainlock ::CLSIG_REQUESTID_PREFIX, clsig.getHeight ()));
550550
551551    return  llmq::VerifyRecoveredSig (llmqType, m_chainstate.m_chain , qman, clsig.getHeight (), nRequestId, clsig.getBlockHash (), clsig.getSig ());
552552}
0 commit comments