@@ -113,7 +113,7 @@ PeerMsgRet CInstantSendManager::ProcessMessage(const CNode& pfrom, PeerManager&
113113 CDataStream& vRecv)
114114{
115115 if (IsInstantSendEnabled () && msg_type == NetMsgType::ISDLOCK) {
116- const auto islock = std::make_shared<CInstantSendLock >();
116+ const auto islock = std::make_shared<instantsend::InstantSendLock >();
117117 vRecv >> *islock;
118118 return ProcessMessageInstantSendLock (pfrom, peerman, islock);
119119 }
@@ -125,7 +125,7 @@ bool ShouldReportISLockTiming() {
125125}
126126
127127PeerMsgRet CInstantSendManager::ProcessMessageInstantSendLock (const CNode& pfrom, PeerManager& peerman,
128- const llmq::CInstantSendLockPtr & islock)
128+ const instantsend::InstantSendLockPtr & islock)
129129{
130130 auto hash = ::SerializeHash (*islock);
131131
@@ -245,7 +245,7 @@ bool CInstantSendManager::ProcessPendingInstantSendLocks(PeerManager& peerman)
245245
246246std::unordered_set<uint256, StaticSaltedHasher> CInstantSendManager::ProcessPendingInstantSendLocks (
247247 const Consensus::LLMQParams& llmq_params, PeerManager& peerman, int signOffset,
248- const std::unordered_map<uint256, std::pair<NodeId, CInstantSendLockPtr >, StaticSaltedHasher>& pend, bool ban)
248+ const std::unordered_map<uint256, std::pair<NodeId, instantsend::InstantSendLockPtr >, StaticSaltedHasher>& pend, bool ban)
249249{
250250 CBLSBatchVerifier<NodeId, uint256> batchVerifier (false , true , 8 );
251251 std::unordered_map<uint256, CRecoveredSig, StaticSaltedHasher> recSigs;
@@ -354,7 +354,7 @@ std::unordered_set<uint256, StaticSaltedHasher> CInstantSendManager::ProcessPend
354354}
355355
356356void CInstantSendManager::ProcessInstantSendLock (NodeId from, PeerManager& peerman, const uint256& hash,
357- const CInstantSendLockPtr & islock)
357+ const instantsend::InstantSendLockPtr & islock)
358358{
359359 LogPrint (BCLog::INSTANTSEND, " CInstantSendManager::%s -- txid=%s, islock=%s: processing islock, peer=%d\n " , __func__,
360360 islock->txid .ToString (), hash.ToString (), from);
@@ -440,7 +440,7 @@ void CInstantSendManager::TransactionAddedToMempool(PeerManager& peerman, const
440440 return ;
441441 }
442442
443- CInstantSendLockPtr islock{nullptr };
443+ instantsend::InstantSendLockPtr islock{nullptr };
444444 {
445445 LOCK (cs_pendingLocks);
446446 auto it = pendingNoTxInstantSendLocks.begin ();
@@ -475,7 +475,7 @@ void CInstantSendManager::TransactionRemovedFromMempool(const CTransactionRef& t
475475 return ;
476476 }
477477
478- CInstantSendLockPtr islock = db.GetInstantSendLockByTxid (tx->GetHash ());
478+ instantsend::InstantSendLockPtr islock = db.GetInstantSendLockByTxid (tx->GetHash ());
479479
480480 if (islock == nullptr ) {
481481 return ;
@@ -610,7 +610,7 @@ void CInstantSendManager::RemoveConflictedTx(const CTransaction& tx)
610610 }
611611}
612612
613- void CInstantSendManager::TruncateRecoveredSigsForInputs (const llmq::CInstantSendLock & islock)
613+ void CInstantSendManager::TruncateRecoveredSigsForInputs (const instantsend::InstantSendLock & islock)
614614{
615615 auto ids = GetIdsFromLockable (islock.inputs );
616616 if (m_signer) {
@@ -621,7 +621,7 @@ void CInstantSendManager::TruncateRecoveredSigsForInputs(const llmq::CInstantSen
621621 }
622622}
623623
624- void CInstantSendManager::TryEmplacePendingLock (const uint256& hash, const NodeId id, const CInstantSendLockPtr & islock)
624+ void CInstantSendManager::TryEmplacePendingLock (const uint256& hash, const NodeId id, const instantsend::InstantSendLockPtr & islock)
625625{
626626 if (db.KnownInstantSendLock (hash)) return ;
627627 LOCK (cs_pendingLocks);
@@ -695,7 +695,7 @@ void CInstantSendManager::HandleFullyConfirmedBlock(const CBlockIndex* pindex)
695695}
696696
697697void CInstantSendManager::RemoveMempoolConflictsForLock (PeerManager& peerman, const uint256& hash,
698- const CInstantSendLock & islock)
698+ const instantsend::InstantSendLock & islock)
699699{
700700 std::unordered_map<uint256, CTransactionRef, StaticSaltedHasher> toDelete;
701701
@@ -728,7 +728,7 @@ void CInstantSendManager::RemoveMempoolConflictsForLock(PeerManager& peerman, co
728728 }
729729}
730730
731- void CInstantSendManager::ResolveBlockConflicts (const uint256& islockHash, const llmq::CInstantSendLock & islock)
731+ void CInstantSendManager::ResolveBlockConflicts (const uint256& islockHash, const instantsend::InstantSendLock & islock)
732732{
733733 // Lets first collect all non-locked TXs which conflict with the given ISLOCK
734734 std::unordered_map<const CBlockIndex*, std::unordered_map<uint256, CTransactionRef, StaticSaltedHasher>> conflicts;
@@ -816,7 +816,7 @@ void CInstantSendManager::ResolveBlockConflicts(const uint256& islockHash, const
816816 }
817817}
818818
819- void CInstantSendManager::RemoveConflictingLock (const uint256& islockHash, const llmq::CInstantSendLock & islock)
819+ void CInstantSendManager::RemoveConflictingLock (const uint256& islockHash, const instantsend::InstantSendLock & islock)
820820{
821821 LogPrintf (" CInstantSendManager::%s -- txid=%s, islock=%s: Removing ISLOCK and its chained children\n " , __func__,
822822 islock.txid .ToString (), islockHash.ToString ());
@@ -839,7 +839,7 @@ bool CInstantSendManager::AlreadyHave(const CInv& inv) const
839839 || db.KnownInstantSendLock (inv.hash );
840840}
841841
842- bool CInstantSendManager::GetInstantSendLockByHash (const uint256& hash, llmq::CInstantSendLock & ret) const
842+ bool CInstantSendManager::GetInstantSendLockByHash (const uint256& hash, instantsend::InstantSendLock & ret) const
843843{
844844 if (!IsInstantSendEnabled ()) {
845845 return false ;
@@ -864,7 +864,7 @@ bool CInstantSendManager::GetInstantSendLockByHash(const uint256& hash, llmq::CI
864864 return true ;
865865}
866866
867- CInstantSendLockPtr CInstantSendManager::GetInstantSendLockByTxid (const uint256& txid) const
867+ instantsend::InstantSendLockPtr CInstantSendManager::GetInstantSendLockByTxid (const uint256& txid) const
868868{
869869 if (!IsInstantSendEnabled ()) {
870870 return nullptr ;
@@ -901,7 +901,7 @@ bool CInstantSendManager::IsWaitingForTx(const uint256& txHash) const
901901 return false ;
902902}
903903
904- CInstantSendLockPtr CInstantSendManager::GetConflictingLock (const CTransaction& tx) const
904+ instantsend::InstantSendLockPtr CInstantSendManager::GetConflictingLock (const CTransaction& tx) const
905905{
906906 if (!IsInstantSendEnabled ()) {
907907 return nullptr ;
0 commit comments