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

No change in behavior, the lock is already held at call sites.
This commit is contained in:
Hennadii Stepanov committed 2020-09-01 12:34:39 +03:00
1 parent fa5fcb032b
commit 7c4bd0387a
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}