mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
refactor: CTxMemPool::GetTotalTxSize() requires CTxMemPool::cs lock
No change in behavior, the lock is already held at call sites.
This commit is contained in:
parent
fa5fcb032b
commit
7c4bd0387a
1 changed files with 2 additions and 2 deletions
|
|
@ -710,9 +710,9 @@ public:
|
|||
return mapTx.size();
|
||||
}
|
||||
|
||||
uint64_t GetTotalTxSize() const
|
||||
uint64_t GetTotalTxSize() const EXCLUSIVE_LOCKS_REQUIRED(cs)
|
||||
{
|
||||
LOCK(cs);
|
||||
AssertLockHeld(cs);
|
||||
return totalTxSize;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue