mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
refactor: CTxMemPool::IsUnbroadcastTx() requires CTxMemPool::cs lock
No change in behavior, the lock is already held at call sites.
This commit is contained in:
parent
7c4bd0387a
commit
020f0519ec
1 changed files with 4 additions and 3 deletions
|
@ -757,9 +757,10 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns whether a txid is in the unbroadcast set */
|
/** Returns whether a txid is in the unbroadcast set */
|
||||||
bool IsUnbroadcastTx(const uint256& txid) const {
|
bool IsUnbroadcastTx(const uint256& txid) const EXCLUSIVE_LOCKS_REQUIRED(cs)
|
||||||
LOCK(cs);
|
{
|
||||||
return (m_unbroadcast_txids.count(txid) != 0);
|
AssertLockHeld(cs);
|
||||||
|
return m_unbroadcast_txids.count(txid) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Reference in a new issue