mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-19 06:30:45 +02: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
@ -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…
Reference in New Issue
Block a user