Skip to content

Commit 0e07937

Browse files
committed
fix: add missing const and thread annotation for IsKnown
1 parent e499f21 commit 0e07937

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/instantsend/instantsend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ std::unordered_map<const CBlockIndex*, Uint256HashMap<CTransactionRef>> CInstant
274274
return conflicts;
275275
}
276276

277-
bool CInstantSendManager::IsKnownTx(const uint256& islockHash)
277+
bool CInstantSendManager::IsKnownTx(const uint256& islockHash) const
278278
{
279279
LOCK(cs_pendingLocks);
280280
return pendingNoTxInstantSendLocks.find(islockHash) == pendingNoTxInstantSendLocks.end();

src/instantsend/instantsend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class CInstantSendManager
109109
std::unordered_map<const CBlockIndex*, Uint256HashMap<CTransactionRef>> RetrieveISConflicts(
110110
const uint256& islockHash, const instantsend::InstantSendLock& islock)
111111
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingLocks);
112-
bool IsKnownTx(const uint256& islockHash);
112+
bool IsKnownTx(const uint256& islockHash) const EXCLUSIVE_LOCKS_REQUIRED(!cs_pendingLocks);
113113

114114
bool IsLocked(const uint256& txHash) const;
115115
bool IsWaitingForTx(const uint256& txHash) const EXCLUSIVE_LOCKS_REQUIRED(!cs_pendingLocks);

0 commit comments

Comments
 (0)