| 372 | } |
| 373 | |
| 374 | void CTxMemPool::UpdateEntryForAncestors(txiter it, const setEntries &setAncestors) |
| 375 | { |
| 376 | int64_t updateCount = setAncestors.size(); |
| 377 | int64_t updateSize = 0; |
| 378 | CAmount updateFee = 0; |
| 379 | int64_t updateSigOpsCost = 0; |
| 380 | int64_t discountSize = 0; |
| 381 | for (txiter ancestorIt : setAncestors) { |
| 382 | updateSize += ancestorIt->GetTxSize(); |
| 383 | updateFee += ancestorIt->GetModifiedFee(); |
| 384 | updateSigOpsCost += ancestorIt->GetSigOpCost(); |
| 385 | discountSize += ancestorIt->GetDiscountTxSize(); |
| 386 | } |
| 387 | mapTx.modify(it, update_ancestor_state(updateSize, updateFee, updateCount, updateSigOpsCost, discountSize)); |
| 388 | } |
| 389 | |
| 390 | void CTxMemPool::UpdateChildrenForRemoval(txiter it) |
| 391 | { |
nothing calls this directly
no test coverage detected