| 1194 | } |
| 1195 | |
| 1196 | void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add) |
| 1197 | { |
| 1198 | AssertLockHeld(cs); |
| 1199 | CTxMemPoolEntry::Parents s; |
| 1200 | if (add && entry->GetMemPoolParents().insert(*parent).second) { |
| 1201 | cachedInnerUsage += memusage::IncrementalDynamicUsage(s); |
| 1202 | } else if (!add && entry->GetMemPoolParents().erase(*parent)) { |
| 1203 | cachedInnerUsage -= memusage::IncrementalDynamicUsage(s); |
| 1204 | } |
| 1205 | } |
| 1206 | |
| 1207 | CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const { |
| 1208 | LOCK(cs); |
nothing calls this directly
no test coverage detected