Skip to content

Commit 6bada16

Browse files
committed
refactor: llmq::CInstantSendLock{,Ptr} > instantsend::InstantSendLock{,Ptr}
1 parent 9a56ae3 commit 6bada16

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
@@ -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

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

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

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

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

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)