Skip to content

Commit b4d1bd2

Browse files
committed
refactor: llmq::CInstantSendLock{,Ptr} > instantsend::InstantSendLock{,Ptr}
1 parent 8d78e7d commit b4d1bd2

23 files changed

+106
-107
lines changed

src/instantsend/db.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void CInstantSendDb::Upgrade(bool unitTests)
5050
}
5151
}
5252

53-
void CInstantSendDb::WriteNewInstantSendLock(const uint256& hash, const llmq::CInstantSendLock& islock)
53+
void CInstantSendDb::WriteNewInstantSendLock(const uint256& hash, const InstantSendLock& islock)
5454
{
5555
LOCK(cs_db);
5656
CDBBatch batch(*db);
@@ -61,14 +61,14 @@ void CInstantSendDb::WriteNewInstantSendLock(const uint256& hash, const llmq::CI
6161
}
6262
db->WriteBatch(batch);
6363

64-
islockCache.insert(hash, std::make_shared<llmq::CInstantSendLock>(islock));
64+
islockCache.insert(hash, std::make_shared<InstantSendLock>(islock));
6565
txidCache.insert(islock.txid, hash);
6666
for (const auto& in : islock.inputs) {
6767
outpointCache.insert(in, hash);
6868
}
6969
}
7070

71-
void CInstantSendDb::RemoveInstantSendLock(CDBBatch& batch, const uint256& hash, llmq::CInstantSendLockPtr islock, bool keep_cache)
71+
void CInstantSendDb::RemoveInstantSendLock(CDBBatch& batch, const uint256& hash, InstantSendLockPtr islock, bool keep_cache)
7272
{
7373
AssertLockHeld(cs_db);
7474
if (!islock) {
@@ -120,7 +120,7 @@ void CInstantSendDb::WriteInstantSendLockArchived(CDBBatch& batch, const uint256
120120
batch.Write(std::make_tuple(DB_ARCHIVED_BY_HASH, hash), true);
121121
}
122122

123-
std::unordered_map<uint256, llmq::CInstantSendLockPtr, StaticSaltedHasher> CInstantSendDb::RemoveConfirmedInstantSendLocks(int nUntilHeight)
123+
std::unordered_map<uint256, InstantSendLockPtr, StaticSaltedHasher> CInstantSendDb::RemoveConfirmedInstantSendLocks(int nUntilHeight)
124124
{
125125
LOCK(cs_db);
126126
if (nUntilHeight <= best_confirmed_height) {
@@ -137,7 +137,7 @@ std::unordered_map<uint256, llmq::CInstantSendLockPtr, StaticSaltedHasher> CInst
137137
it->Seek(firstKey);
138138

139139
CDBBatch batch(*db);
140-
std::unordered_map<uint256, llmq::CInstantSendLockPtr, StaticSaltedHasher> ret;
140+
std::unordered_map<uint256, InstantSendLockPtr, StaticSaltedHasher> ret;
141141
while (it->Valid()) {
142142
decltype(firstKey) curKey;
143143
if (!it->GetKey(curKey) || std::get<0>(curKey) != DB_MINED_BY_HEIGHT_AND_HASH) {
@@ -267,22 +267,22 @@ size_t CInstantSendDb::GetInstantSendLockCount() const
267267
return cnt;
268268
}
269269

270-
llmq::CInstantSendLockPtr CInstantSendDb::GetInstantSendLockByHashInternal(const uint256& hash, bool use_cache) const
270+
InstantSendLockPtr CInstantSendDb::GetInstantSendLockByHashInternal(const uint256& hash, bool use_cache) const
271271
{
272272
AssertLockHeld(cs_db);
273273
if (hash.IsNull()) {
274274
return nullptr;
275275
}
276276

277-
llmq::CInstantSendLockPtr ret;
277+
InstantSendLockPtr ret;
278278
if (use_cache && islockCache.get(hash, ret)) {
279279
return ret;
280280
}
281281

282-
ret = std::make_shared<llmq::CInstantSendLock>();
282+
ret = std::make_shared<InstantSendLock>();
283283
bool exists = db->Read(std::make_tuple(DB_ISLOCK_BY_HASH, hash), *ret);
284284
if (!exists || (::SerializeHash(*ret) != hash)) {
285-
ret = std::make_shared<llmq::CInstantSendLock>();
285+
ret = std::make_shared<InstantSendLock>();
286286
exists = db->Read(std::make_tuple(DB_ISLOCK_BY_HASH, hash), *ret);
287287
if (!exists || (::SerializeHash(*ret) != hash)) {
288288
ret = nullptr;
@@ -305,13 +305,13 @@ uint256 CInstantSendDb::GetInstantSendLockHashByTxidInternal(const uint256& txid
305305
return islockHash;
306306
}
307307

308-
llmq::CInstantSendLockPtr CInstantSendDb::GetInstantSendLockByTxid(const uint256& txid) const
308+
InstantSendLockPtr CInstantSendDb::GetInstantSendLockByTxid(const uint256& txid) const
309309
{
310310
LOCK(cs_db);
311311
return GetInstantSendLockByHashInternal(GetInstantSendLockHashByTxidInternal(txid));
312312
}
313313

314-
llmq::CInstantSendLockPtr CInstantSendDb::GetInstantSendLockByInput(const COutPoint& outpoint) const
314+
InstantSendLockPtr CInstantSendDb::GetInstantSendLockByInput(const COutPoint& outpoint) const
315315
{
316316
LOCK(cs_db);
317317
uint256 islockHash;

src/instantsend/db.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CInstantSendDb
3636
int best_confirmed_height GUARDED_BY(cs_db) {0};
3737

3838
std::unique_ptr<CDBWrapper> db GUARDED_BY(cs_db) {nullptr};
39-
mutable unordered_lru_cache<uint256, llmq::CInstantSendLockPtr, StaticSaltedHasher, 10000> islockCache GUARDED_BY(cs_db);
39+
mutable unordered_lru_cache<uint256, InstantSendLockPtr, StaticSaltedHasher, 10000> islockCache GUARDED_BY(cs_db);
4040
mutable unordered_lru_cache<uint256, uint256, StaticSaltedHasher, 10000> txidCache GUARDED_BY(cs_db);
4141

4242
mutable unordered_lru_cache<COutPoint, uint256, SaltedOutpointHasher, 10000> outpointCache GUARDED_BY(cs_db);
@@ -51,7 +51,7 @@ class CInstantSendDb
5151
* @param islock The InstantSend Lock object itself
5252
* @param keep_cache Should we still keep corresponding entries in the cache or not
5353
*/
54-
void RemoveInstantSendLock(CDBBatch& batch, const uint256& hash, llmq::CInstantSendLockPtr islock, bool keep_cache = true) EXCLUSIVE_LOCKS_REQUIRED(cs_db);
54+
void RemoveInstantSendLock(CDBBatch& batch, const uint256& hash, InstantSendLockPtr islock, bool keep_cache = true) EXCLUSIVE_LOCKS_REQUIRED(cs_db);
5555
/**
5656
* Marks an InstantSend Lock as archived.
5757
* @param batch Object used to batch many calls together
@@ -69,7 +69,7 @@ class CInstantSendDb
6969
/**
7070
* See GetInstantSendLockByHash
7171
*/
72-
llmq::CInstantSendLockPtr GetInstantSendLockByHashInternal(const uint256& hash, bool use_cache = true) const EXCLUSIVE_LOCKS_REQUIRED(cs_db);
72+
InstantSendLockPtr GetInstantSendLockByHashInternal(const uint256& hash, bool use_cache = true) const EXCLUSIVE_LOCKS_REQUIRED(cs_db);
7373

7474
/**
7575
* See GetInstantSendLockHashByTxid
@@ -88,7 +88,7 @@ class CInstantSendDb
8888
* @param hash The hash of the InstantSend Lock
8989
* @param islock The InstantSend Lock object itself
9090
*/
91-
void WriteNewInstantSendLock(const uint256& hash, const llmq::CInstantSendLock& islock) EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
91+
void WriteNewInstantSendLock(const uint256& hash, const InstantSendLock& islock) EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
9292
/**
9393
* This method updates a DB entry for an InstantSend Lock from being not included in a block to being included in a block
9494
* @param hash The hash of the InstantSend Lock
@@ -100,7 +100,7 @@ class CInstantSendDb
100100
* @param nUntilHeight Removes all IS Locks confirmed up until nUntilHeight
101101
* @return returns an unordered_map of the hash of the IS Locks and a pointer object to the IS Locks for all IS Locks which were removed
102102
*/
103-
std::unordered_map<uint256, llmq::CInstantSendLockPtr, StaticSaltedHasher> RemoveConfirmedInstantSendLocks(int nUntilHeight) EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
103+
std::unordered_map<uint256, InstantSendLockPtr, StaticSaltedHasher> RemoveConfirmedInstantSendLocks(int nUntilHeight) EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
104104
/**
105105
* Removes IS Locks from the archive if the tx was confirmed 100 blocks before nUntilHeight
106106
* @param nUntilHeight the height from which to base the remove of archive IS Locks
@@ -120,7 +120,7 @@ class CInstantSendDb
120120
* @param use_cache Should we try using the cache first or not
121121
* @return A Pointer object to the IS Lock, returns nullptr if it doesn't exist
122122
*/
123-
llmq::CInstantSendLockPtr GetInstantSendLockByHash(const uint256& hash, bool use_cache = true) const EXCLUSIVE_LOCKS_REQUIRED(!cs_db)
123+
InstantSendLockPtr GetInstantSendLockByHash(const uint256& hash, bool use_cache = true) const EXCLUSIVE_LOCKS_REQUIRED(!cs_db)
124124
{
125125
LOCK(cs_db);
126126
return GetInstantSendLockByHashInternal(hash, use_cache);
@@ -140,13 +140,13 @@ class CInstantSendDb
140140
* @param txid The txid for which the IS Lock Pointer is being returned
141141
* @return Returns the IS Lock Pointer associated with the txid, returns nullptr if it doesn't exist
142142
*/
143-
llmq::CInstantSendLockPtr GetInstantSendLockByTxid(const uint256& txid) const EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
143+
InstantSendLockPtr GetInstantSendLockByTxid(const uint256& txid) const EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
144144
/**
145145
* Gets an IS Lock pointer from an input given
146146
* @param outpoint Since all inputs are really just outpoints that are being spent
147147
* @return IS Lock Pointer associated with that input.
148148
*/
149-
llmq::CInstantSendLockPtr GetInstantSendLockByInput(const COutPoint& outpoint) const EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
149+
InstantSendLockPtr GetInstantSendLockByInput(const COutPoint& outpoint) const EXCLUSIVE_LOCKS_REQUIRED(!cs_db);
150150
/**
151151
* Called when a ChainLock invalidated a IS Lock, removes any chained/children IS Locks and the invalidated IS Lock
152152
* @param islockHash IS Lock hash which has been invalidated

src/instantsend/instantsend.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

127127
PeerMsgRet 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

246246
std::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

356356
void 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

697697
void 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;

src/instantsend/instantsend.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class CInstantSendManager
6161

6262
mutable Mutex cs_pendingLocks;
6363
// Incoming and not verified yet
64-
std::unordered_map<uint256, std::pair<NodeId, CInstantSendLockPtr>, StaticSaltedHasher> pendingInstantSendLocks GUARDED_BY(cs_pendingLocks);
64+
std::unordered_map<uint256, std::pair<NodeId, instantsend::InstantSendLockPtr>, StaticSaltedHasher> pendingInstantSendLocks GUARDED_BY(cs_pendingLocks);
6565
// Tried to verify but there is no tx yet
66-
std::unordered_map<uint256, std::pair<NodeId, CInstantSendLockPtr>, StaticSaltedHasher> pendingNoTxInstantSendLocks GUARDED_BY(cs_pendingLocks);
66+
std::unordered_map<uint256, std::pair<NodeId, instantsend::InstantSendLockPtr>, StaticSaltedHasher> pendingNoTxInstantSendLocks GUARDED_BY(cs_pendingLocks);
6767

6868
// TXs which are neither IS locked nor ChainLocked. We use this to determine for which TXs we need to retry IS locking
6969
// of child TXs
@@ -95,15 +95,15 @@ class CInstantSendManager
9595
void InterruptWorkerThread() { workInterrupt(); };
9696

9797
private:
98-
PeerMsgRet ProcessMessageInstantSendLock(const CNode& pfrom, PeerManager& peerman, const CInstantSendLockPtr& islock);
98+
PeerMsgRet ProcessMessageInstantSendLock(const CNode& pfrom, PeerManager& peerman, const instantsend::InstantSendLockPtr& islock);
9999
bool ProcessPendingInstantSendLocks(PeerManager& peerman)
100100
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingLocks, !cs_pendingRetry);
101101

102102
std::unordered_set<uint256, StaticSaltedHasher> ProcessPendingInstantSendLocks(
103103
const Consensus::LLMQParams& llmq_params, PeerManager& peerman, int signOffset,
104-
const std::unordered_map<uint256, std::pair<NodeId, CInstantSendLockPtr>, StaticSaltedHasher>& pend, bool ban)
104+
const std::unordered_map<uint256, std::pair<NodeId, instantsend::InstantSendLockPtr>, StaticSaltedHasher>& pend, bool ban)
105105
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingLocks, !cs_pendingRetry);
106-
void ProcessInstantSendLock(NodeId from, PeerManager& peerman, const uint256& hash, const CInstantSendLockPtr& islock)
106+
void ProcessInstantSendLock(NodeId from, PeerManager& peerman, const uint256& hash, const instantsend::InstantSendLockPtr& islock)
107107
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingLocks, !cs_pendingRetry);
108108

109109
void AddNonLockedTx(const CTransactionRef& tx, const CBlockIndex* pindexMined)
@@ -112,11 +112,11 @@ class CInstantSendManager
112112
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingRetry);
113113
void RemoveConflictedTx(const CTransaction& tx)
114114
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingRetry);
115-
void TruncateRecoveredSigsForInputs(const CInstantSendLock& islock);
115+
void TruncateRecoveredSigsForInputs(const instantsend::InstantSendLock& islock);
116116

117-
void RemoveMempoolConflictsForLock(PeerManager& peerman, const uint256& hash, const CInstantSendLock& islock)
117+
void RemoveMempoolConflictsForLock(PeerManager& peerman, const uint256& hash, const instantsend::InstantSendLock& islock)
118118
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingRetry);
119-
void ResolveBlockConflicts(const uint256& islockHash, const CInstantSendLock& islock)
119+
void ResolveBlockConflicts(const uint256& islockHash, const instantsend::InstantSendLock& islock)
120120
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingLocks, !cs_pendingRetry);
121121

122122
void WorkThreadMain(PeerManager& peerman)
@@ -128,7 +128,7 @@ class CInstantSendManager
128128
public:
129129
bool IsLocked(const uint256& txHash) const;
130130
bool IsWaitingForTx(const uint256& txHash) const EXCLUSIVE_LOCKS_REQUIRED(!cs_pendingLocks);
131-
CInstantSendLockPtr GetConflictingLock(const CTransaction& tx) const;
131+
instantsend::InstantSendLockPtr GetConflictingLock(const CTransaction& tx) const;
132132

133133
PeerMsgRet ProcessMessage(const CNode& pfrom, PeerManager& peerman, std::string_view msg_type, CDataStream& vRecv);
134134

@@ -140,17 +140,17 @@ class CInstantSendManager
140140
void BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexDisconnected);
141141

142142
bool AlreadyHave(const CInv& inv) const EXCLUSIVE_LOCKS_REQUIRED(!cs_pendingLocks);
143-
bool GetInstantSendLockByHash(const uint256& hash, CInstantSendLock& ret) const
143+
bool GetInstantSendLockByHash(const uint256& hash, instantsend::InstantSendLock& ret) const
144144
EXCLUSIVE_LOCKS_REQUIRED(!cs_pendingLocks);
145-
CInstantSendLockPtr GetInstantSendLockByTxid(const uint256& txid) const;
145+
instantsend::InstantSendLockPtr GetInstantSendLockByTxid(const uint256& txid) const;
146146

147147
void NotifyChainLock(const CBlockIndex* pindexChainLock)
148148
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingRetry);
149149
void UpdatedBlockTip(const CBlockIndex* pindexNew)
150150
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingRetry);
151151

152-
void RemoveConflictingLock(const uint256& islockHash, const CInstantSendLock& islock);
153-
void TryEmplacePendingLock(const uint256& hash, const NodeId id, const CInstantSendLockPtr& islock)
152+
void RemoveConflictingLock(const uint256& islockHash, const instantsend::InstantSendLock& islock);
153+
void TryEmplacePendingLock(const uint256& hash, const NodeId id, const instantsend::InstantSendLockPtr& islock)
154154
EXCLUSIVE_LOCKS_REQUIRED(!cs_pendingLocks);
155155

156156
size_t GetInstantSendLockCount() const;

0 commit comments

Comments
 (0)