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

Construct a new block template and, calculate the cost of bumping all transactions that did not make it into the block to the target feerate&period; Returns the total bump fee, or std&colon;&colon;nullopt if it cannot be calculated&period;

== Synopsis

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

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

== Return Value

The total bump fee, or std&colon;&colon;nullopt 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]#
