@@ -115,7 +115,7 @@ PeerMsgRet CInstantSendManager::ProcessMessage(const CNode& pfrom, PeerManager&
115115 CDataStream& vRecv)
116116{
117117 if (IsInstantSendEnabled () && msg_type == NetMsgType::ISDLOCK) {
118- const auto islock = std::make_shared<CInstantSendLock >();
118+ const auto islock = std::make_shared<instantsend::InstantSendLock >();
119119 vRecv >> *islock;
120120 return ProcessMessageInstantSendLock (pfrom, peerman, islock);
121121 }
@@ -127,7 +127,7 @@ bool ShouldReportISLockTiming() {
127127}
128128
129129PeerMsgRet CInstantSendManager::ProcessMessageInstantSendLock (const CNode& pfrom, PeerManager& peerman,
130- const llmq::CInstantSendLockPtr & islock)
130+ const instantsend::InstantSendLockPtr & islock)
131131{
132132 auto hash = ::SerializeHash (*islock);
133133
@@ -247,7 +247,7 @@ bool CInstantSendManager::ProcessPendingInstantSendLocks(PeerManager& peerman)
247247
248248std::unordered_set<uint256, StaticSaltedHasher> CInstantSendManager::ProcessPendingInstantSendLocks (
249249 const Consensus::LLMQParams& llmq_params, PeerManager& peerman, int signOffset,
250- const std::unordered_map<uint256, std::pair<NodeId, CInstantSendLockPtr >, StaticSaltedHasher>& pend, bool ban)
250+ const std::unordered_map<uint256, std::pair<NodeId, instantsend::InstantSendLockPtr >, StaticSaltedHasher>& pend, bool ban)
251251{
252252 CBLSBatchVerifier<NodeId, uint256> batchVerifier (false , true , 8 );
253253 std::unordered_map<uint256, CRecoveredSig, StaticSaltedHasher> recSigs;
@@ -356,7 +356,7 @@ std::unordered_set<uint256, StaticSaltedHasher> CInstantSendManager::ProcessPend
356356}
357357
358358void CInstantSendManager::ProcessInstantSendLock (NodeId from, PeerManager& peerman, const uint256& hash,
359- const CInstantSendLockPtr & islock)
359+ const instantsend::InstantSendLockPtr & islock)
360360{
361361 LogPrint (BCLog::INSTANTSEND, " CInstantSendManager::%s -- txid=%s, islock=%s: processing islock, peer=%d\n " , __func__,
362362 islock->txid .ToString (), hash.ToString (), from);
@@ -442,7 +442,7 @@ void CInstantSendManager::TransactionAddedToMempool(PeerManager& peerman, const
442442 return ;
443443 }
444444
445- CInstantSendLockPtr islock{nullptr };
445+ instantsend::InstantSendLockPtr islock{nullptr };
446446 {
447447 LOCK (cs_pendingLocks);
448448 auto it = pendingNoTxInstantSendLocks.begin ();
@@ -477,7 +477,7 @@ void CInstantSendManager::TransactionRemovedFromMempool(const CTransactionRef& t
477477 return ;
478478 }
479479
480- CInstantSendLockPtr islock = db.GetInstantSendLockByTxid (tx->GetHash ());
480+ instantsend::InstantSendLockPtr islock = db.GetInstantSendLockByTxid (tx->GetHash ());
481481
482482 if (islock == nullptr ) {
483483 return ;
@@ -612,7 +612,7 @@ void CInstantSendManager::RemoveConflictedTx(const CTransaction& tx)
612612 }
613613}
614614
615- void CInstantSendManager::TruncateRecoveredSigsForInputs (const llmq::CInstantSendLock & islock)
615+ void CInstantSendManager::TruncateRecoveredSigsForInputs (const instantsend::InstantSendLock & islock)
616616{
617617 auto ids = GetIdsFromLockable (islock.inputs );
618618 if (m_activeman) {
@@ -623,7 +623,7 @@ void CInstantSendManager::TruncateRecoveredSigsForInputs(const llmq::CInstantSen
623623 }
624624}
625625
626- void CInstantSendManager::TryEmplacePendingLock (const uint256& hash, const NodeId id, const CInstantSendLockPtr & islock)
626+ void CInstantSendManager::TryEmplacePendingLock (const uint256& hash, const NodeId id, const instantsend::InstantSendLockPtr & islock)
627627{
628628 if (db.KnownInstantSendLock (hash)) return ;
629629 LOCK (cs_pendingLocks);
@@ -697,7 +697,7 @@ void CInstantSendManager::HandleFullyConfirmedBlock(const CBlockIndex* pindex)
697697}
698698
699699void CInstantSendManager::RemoveMempoolConflictsForLock (PeerManager& peerman, const uint256& hash,
700- const CInstantSendLock & islock)
700+ const instantsend::InstantSendLock & islock)
701701{
702702 std::unordered_map<uint256, CTransactionRef, StaticSaltedHasher> toDelete;
703703
@@ -730,7 +730,7 @@ void CInstantSendManager::RemoveMempoolConflictsForLock(PeerManager& peerman, co
730730 }
731731}
732732
733- void CInstantSendManager::ResolveBlockConflicts (const uint256& islockHash, const llmq::CInstantSendLock & islock)
733+ void CInstantSendManager::ResolveBlockConflicts (const uint256& islockHash, const instantsend::InstantSendLock & islock)
734734{
735735 // Lets first collect all non-locked TXs which conflict with the given ISLOCK
736736 std::unordered_map<const CBlockIndex*, std::unordered_map<uint256, CTransactionRef, StaticSaltedHasher>> conflicts;
@@ -818,7 +818,7 @@ void CInstantSendManager::ResolveBlockConflicts(const uint256& islockHash, const
818818 }
819819}
820820
821- void CInstantSendManager::RemoveConflictingLock (const uint256& islockHash, const llmq::CInstantSendLock & islock)
821+ void CInstantSendManager::RemoveConflictingLock (const uint256& islockHash, const instantsend::InstantSendLock & islock)
822822{
823823 LogPrintf (" CInstantSendManager::%s -- txid=%s, islock=%s: Removing ISLOCK and its chained children\n " , __func__,
824824 islock.txid .ToString (), islockHash.ToString ());
@@ -841,7 +841,7 @@ bool CInstantSendManager::AlreadyHave(const CInv& inv) const
841841 || db.KnownInstantSendLock (inv.hash );
842842}
843843
844- bool CInstantSendManager::GetInstantSendLockByHash (const uint256& hash, llmq::CInstantSendLock & ret) const
844+ bool CInstantSendManager::GetInstantSendLockByHash (const uint256& hash, instantsend::InstantSendLock & ret) const
845845{
846846 if (!IsInstantSendEnabled ()) {
847847 return false ;
@@ -866,7 +866,7 @@ bool CInstantSendManager::GetInstantSendLockByHash(const uint256& hash, llmq::CI
866866 return true ;
867867}
868868
869- CInstantSendLockPtr CInstantSendManager::GetInstantSendLockByTxid (const uint256& txid) const
869+ instantsend::InstantSendLockPtr CInstantSendManager::GetInstantSendLockByTxid (const uint256& txid) const
870870{
871871 if (!IsInstantSendEnabled ()) {
872872 return nullptr ;
@@ -903,7 +903,7 @@ bool CInstantSendManager::IsWaitingForTx(const uint256& txHash) const
903903 return false ;
904904}
905905
906- CInstantSendLockPtr CInstantSendManager::GetConflictingLock (const CTransaction& tx) const
906+ instantsend::InstantSendLockPtr CInstantSendManager::GetConflictingLock (const CTransaction& tx) const
907907{
908908 if (!IsInstantSendEnabled ()) {
909909 return nullptr ;
0 commit comments