aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-01 12:12:47 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-01 12:34:11 +0300
commit939807768acd508932f2efabee660d56324a73df (patch)
treea5613b17a715fbbd089922b342d379fcbdca5a66 /src/txmempool.cpp
parentbab4cce1b0eedc1a51692aaf83ba54dd0a9d17e6 (diff)
refactor: CTxMemPool::UpdateParent() requires CTxMemPool::cs lock
No change in behavior, the lock is already held at call sites.
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index de1a3ec68f..ef2ec661e8 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -978,6 +978,7 @@ void CTxMemPool::UpdateChild(txiter entry, txiter child, bool add)
void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add)
{
+ AssertLockHeld(cs);
setEntries s;
if (add && mapLinks[entry].parents.insert(parent).second) {
cachedInnerUsage += memusage::IncrementalDynamicUsage(s);