wallet::CoinsResult::GetAppropriateTotal

Returns the appropriate total based on whether fees are being subtracted from outputs.

Synopsis

Declared in <wallet/spend.h>

std::optional<CAmount>
GetAppropriateTotal(bool subtract_fee_outputs) const;

Return Value

The raw total when subtracting fees from outputs, otherwise the effective total.

Parameters

NameDescription
subtract_fee_outputsWhether fees are subtracted from the outputs.