MCPcopy Create free account
hub / github.com/LUX-Core/lux / ApplyDeltas

Method ApplyDeltas

src/txmempool.cpp:953–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953void CTxMemPool::ApplyDeltas(const uint256 hash, double &dPriorityDelta, CAmount &nFeeDelta) const
954{
955 LOCK(cs);
956 std::map<uint256, std::pair<double, CAmount> >::const_iterator pos = mapDeltas.find(hash);
957 if (pos == mapDeltas.end())
958 return;
959 const std::pair<double, CAmount> &deltas = pos->second;
960 dPriorityDelta += deltas.first;
961 nFeeDelta += deltas.second;
962}
963
964void CTxMemPool::ClearPrioritisation(const uint256 hash)
965{

Callers 3

AddToBlockMethod · 0.80
addPriorityTxsMethod · 0.80
GetMinRelayFeeFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected