Skip to content

Commit

Permalink
add missing lock annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed Oct 27, 2023
1 parent d981c44 commit 3cdbedc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/txmempool.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,9 @@ class CTxMemPool
typedef std::map<txiter, setEntries, CompareMempoolIteratorByHash> cacheMap;


void ModifyDescendantState(txiter entry, int32_t modifySize, CAmount modifyFee, int64_t modifyCount);
void ModifyAncestorState(txiter entry, int32_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps);
void ModifyFee(txiter entry, CAmount fee_diff);
void ModifyDescendantState(txiter entry, int32_t modifySize, CAmount modifyFee, int64_t modifyCount) EXCLUSIVE_LOCKS_REQUIRED(cs);
void ModifyAncestorState(txiter entry, int32_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps) EXCLUSIVE_LOCKS_REQUIRED(cs);
void ModifyFee(txiter entry, CAmount fee_diff) EXCLUSIVE_LOCKS_REQUIRED(cs);
void UpdateParent(txiter entry, txiter parent, bool add) EXCLUSIVE_LOCKS_REQUIRED(cs);
void UpdateChild(txiter entry, txiter child, bool add) EXCLUSIVE_LOCKS_REQUIRED(cs);

Expand Down Expand Up @@ -541,7 +541,7 @@ class CTxMemPool
*/
void RemoveStaged(setEntries& stage, bool updateDescendants, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);

void UpdateLockPoints(txiter iter, const LockPoints& lp);
void UpdateLockPoints(txiter iter, const LockPoints& lp) EXCLUSIVE_LOCKS_REQUIRED(cs);

/** UpdateTransactionsFromBlock is called when adding transactions from a
* disconnected block back to the mempool, new mempool entries may have
Expand Down

0 comments on commit 3cdbedc

Please sign in to comment.