16 if (virtual_bytes > 0) {
24 Assume(virtual_bytes >= 0);
46 return strprintf(
"%d.%0*d %s/kB", feerate_per_kvb / currency.baseunit,
48 (feerate_per_kvb % currency.baseunit) / currency.subunit,
static constexpr Amount SATOSHI
#define Assume(val)
Assume is the identity function.
Amount GetFee(int32_t virtual_bytes) const
Return the fee in satoshis for the given size in bytes.
std::string ToString() const
Amount GetFeePerK() const
Return the fee in satoshis for a size of 1000 bytes.
FeePerUnit< VSizeTag > FeePerVSize
static constexpr Amount zero() noexcept
static const Currency & get()
static std::string getTicker()
int64_t EvaluateFeeUp(int32_t at_size) const noexcept
Compute the fee for a given size at_size using this object's feerate, rounding up.
bool IsEmpty() const noexcept
Check if this is empty (size and fee are 0).