| 1183 | } |
| 1184 | |
| 1185 | void CTxMemPool::UpdateChild(txiter entry, txiter child, bool add) |
| 1186 | { |
| 1187 | AssertLockHeld(cs); |
| 1188 | CTxMemPoolEntry::Children s; |
| 1189 | if (add && entry->GetMemPoolChildren().insert(*child).second) { |
| 1190 | cachedInnerUsage += memusage::IncrementalDynamicUsage(s); |
| 1191 | } else if (!add && entry->GetMemPoolChildren().erase(*child)) { |
| 1192 | cachedInnerUsage -= memusage::IncrementalDynamicUsage(s); |
| 1193 | } |
| 1194 | } |
| 1195 | |
| 1196 | void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add) |
| 1197 | { |
nothing calls this directly
no test coverage detected