diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-09-01 12:18:20 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-09-01 12:34:19 +0300 |
commit | 66e47e5e506043fbb9b4e487b44bf992985709c9 (patch) | |
tree | 4cc6214b6e5040d8ed67a67dcefff65a6e8af82e /src/txmempool.cpp | |
parent | 939807768acd508932f2efabee660d56324a73df (diff) |
refactor: CTxMemPool::UpdateChild() 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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index ef2ec661e8..ea6d7e808c 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -968,6 +968,7 @@ void CTxMemPool::addUnchecked(const CTxMemPoolEntry &entry, bool validFeeEstimat void CTxMemPool::UpdateChild(txiter entry, txiter child, bool add) { + AssertLockHeld(cs); setEntries s; if (add && mapLinks[entry].children.insert(child).second) { cachedInnerUsage += memusage::IncrementalDynamicUsage(s); |