diff options
| author | Hennadii Stepanov <[email protected]> | 2020-09-01 12:33:39 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-09-01 12:34:39 +0300 |
| commit | 7c4bd0387a01a0c3e2938d530dba3c882e4d8f2b (patch) | |
| tree | 80605cad9d4d8fc1a6bac88cd4cb89eac2e064d9 /src/txmempool.h | |
| parent | refactor: CTxMemPool::ClearPrioritisation() requires CTxMemPool::cs lock (diff) | |
| download | discoin-7c4bd0387a01a0c3e2938d530dba3c882e4d8f2b.tar.xz discoin-7c4bd0387a01a0c3e2938d530dba3c882e4d8f2b.zip | |
refactor: CTxMemPool::GetTotalTxSize() requires CTxMemPool::cs lock
No change in behavior, the lock is already held at call sites.
Diffstat (limited to 'src/txmempool.h')
| -rw-r--r-- | src/txmempool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index ddd87d2eb..6e286faf8 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -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; } |