node::MiniMiner::CalculateTotalBumpFees

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. Returns the total bump fee, or std::nullopt if it cannot be calculated.

Synopsis

Declared in <node/mini_miner.h>

std::optional<CAmount>
CalculateTotalBumpFees(CFeeRate const& target_feerate);

Return Value

The total bump fee, or std::nullopt if it cannot be calculated.

Parameters

NameDescription
target_feerateThe feerate the bumped transactions should reach.