MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / PrioritiseTransaction

Method PrioritiseTransaction

src/txmempool.cpp:807–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807void CTxMemPool::PrioritiseTransaction(const uint256 hash, const string strHash, double dPriorityDelta, const CAmount& nFeeDelta)
808{
809 {
810 LOCK(cs);
811 std::pair<double, CAmount> &deltas = mapDeltas[hash];
812 deltas.first += dPriorityDelta;
813 deltas.second += nFeeDelta;
814 }
815 LogPrintf("PrioritiseTransaction: %s priority += %f, fee += %d\n", strHash, dPriorityDelta, FormatMoney(nFeeDelta));
816}
817
818void CTxMemPool::ApplyDeltas(const uint256 hash, double &dPriorityDelta, CAmount &nFeeDelta)
819{

Callers 2

prioritisetransactionFunction · 0.80
AcceptToMemoryPoolFunction · 0.80

Calls 1

FormatMoneyFunction · 0.85

Tested by

no test coverage detected