[#node-MiniMiner-CalculateBumpFees]
= xref:node.adoc[node]::xref:node/MiniMiner.adoc[MiniMiner]::CalculateBumpFees
:relfileprefix: ../../
:mrdocs:

Construct a new block template and, for each outpoint corresponding to a transaction that did not make it into the block, calculate the cost of bumping those transactions (and their ancestors) to the minimum feerate&period; Returns a map from outpoint to bump fee, or an empty map if they cannot be calculated&period;

== Synopsis

Declared in `&lt;node&sol;mini&lowbar;miner&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::map&lt;COutPoint, CAmount&gt;
CalculateBumpFees(xref:CFeeRate.adoc[CFeeRate] const& target&lowbar;feerate);
----

== Return Value

A map from outpoint to required bump fee, or an empty map if it cannot be calculated&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *target&lowbar;feerate*
| The feerate the bumped transactions should reach&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
