aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorHennadii Stepanov <[email protected]>2020-09-01 12:30:21 +0300
committerHennadii Stepanov <[email protected]>2020-09-01 12:34:29 +0300
commitfa5fcb032b6ed04c49ee465235288b8059fa805e (patch)
tree37e06b13bf085c034b6f93493805fecc47a380ef /src/txmempool.h
parentrefactor: CTxMemPool::ApplyDelta() requires CTxMemPool::cs lock (diff)
downloaddiscoin-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.h')
-rw-r--r--src/txmempool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index 46bcf8571..ddd87d2eb 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -627,7 +627,7 @@ public:
/** Affect CreateNewBlock prioritisation of transactions */
void PrioritiseTransaction(const uint256& hash, const CAmount& nFeeDelta);
void ApplyDelta(const uint256& hash, CAmount &nFeeDelta) const EXCLUSIVE_LOCKS_REQUIRED(cs);
- void ClearPrioritisation(const uint256 hash);
+ void ClearPrioritisation(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs);
/** Get the transaction in the pool that spends the same prevout */
const CTransaction* GetConflictTx(const COutPoint& prevout) const EXCLUSIVE_LOCKS_REQUIRED(cs);