refactor: CTxMemPool::GetTotalTxSize() requires CTxMemPool::cs lock

No change in behavior, the lock is already held at call sites.
pull/764/head
Hennadii Stepanov 4 years ago
parent fa5fcb032b
commit 7c4bd0387a
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -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…
Cancel
Save