diff options
| author | Hennadii Stepanov <[email protected]> | 2020-09-01 12:30:21 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-09-01 12:34:29 +0300 |
| commit | fa5fcb032b6ed04c49ee465235288b8059fa805e (patch) | |
| tree | 37e06b13bf085c034b6f93493805fecc47a380ef /src/txmempool.cpp | |
| parent | refactor: CTxMemPool::ApplyDelta() requires CTxMemPool::cs lock (diff) | |
| download | discoin-fa5fcb032b6ed04c49ee465235288b8059fa805e.tar.xz discoin-fa5fcb032b6ed04c49ee465235288b8059fa805e.zip | |
refactor: CTxMemPool::ClearPrioritisation() requires CTxMemPool::cs lock
No change in behavior, the lock is already held at call sites.
Also `const uint256` refactored to `const uint256&`.
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 00b1fb38f..f60809e19 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -862,9 +862,9 @@ void CTxMemPool::ApplyDelta(const uint256& hash, CAmount &nFeeDelta) const nFeeDelta += delta; } -void CTxMemPool::ClearPrioritisation(const uint256 hash) +void CTxMemPool::ClearPrioritisation(const uint256& hash) { - LOCK(cs); + AssertLockHeld(cs); mapDeltas.erase(hash); } |