Constructors

Synopses

Declared in <policy/feerate.h>

Fee rate of 0 satoshis per 0 vB

constexpr
CFeeRate() = default;

Construct from a fee rate expressed as FeePerVSize.

explicit
CFeeRate(FeePerVSize const& feerate);

Construct a fee rate from an amount in satoshis per 1000 vB.

template<std::integral I>
constexpr
explicit
CFeeRate(I const m_feerate_kvb);

Construct a fee rate from a fee in satoshis and a vsize in vB.

CFeeRate(
    CAmount const& nFeePaid,
    int32_t virtual_bytes);

Parameters

Name

Description

feerate

Fee rate as a fee/vsize fraction.

m_feerate_kvb

Fee rate expressed as satoshis per 1000 virtualbytes.

nFeePaid

Fee paid, in satoshis.

virtual_bytes

Transaction virtual size, in vB.

Created with MrDocs