Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 966 Lines • ▼ Show 20 Lines | void CTxMemPool::PrioritiseTransaction(const uint256 &hash, | ||||
// Now update all descendants' modified fees with ancestors | // Now update all descendants' modified fees with ancestors | ||||
setEntries setDescendants; | setEntries setDescendants; | ||||
CalculateDescendants(it, setDescendants); | CalculateDescendants(it, setDescendants); | ||||
setDescendants.erase(it); | setDescendants.erase(it); | ||||
for (txiter descendantIt : setDescendants) { | for (txiter descendantIt : setDescendants) { | ||||
mapTx.modify(descendantIt, | mapTx.modify(descendantIt, | ||||
update_ancestor_state(0, nFeeDelta, 0, 0)); | update_ancestor_state(0, nFeeDelta, 0, 0)); | ||||
} | } | ||||
++nTransactionsUpdated; | |||||
} | } | ||||
} | } | ||||
LogPrintf("PrioritiseTransaction: %s priority += %f, fee += %d\n", | LogPrintf("PrioritiseTransaction: %s priority += %f, fee += %d\n", | ||||
hash.ToString(), dPriorityDelta, FormatMoney(nFeeDelta)); | hash.ToString(), dPriorityDelta, FormatMoney(nFeeDelta)); | ||||
} | } | ||||
void CTxMemPool::ApplyDeltas(const uint256 hash, double &dPriorityDelta, | void CTxMemPool::ApplyDeltas(const uint256 hash, double &dPriorityDelta, | ||||
Amount &nFeeDelta) const { | Amount &nFeeDelta) const { | ||||
▲ Show 20 Lines • Show All 419 Lines • Show Last 20 Lines |