xrpld
Loading...
Searching...
No Matches
xrpl::FeeSetup Struct Reference

Fee schedule for startup / standalone, and to vote for. More...

#include <Config.h>

Collaboration diagram for xrpl::FeeSetup:

Public Member Functions

Fees toFees () const
 Convert to a Fees object for use with Ledger construction.

Public Attributes

XRPAmount referenceFee {10}
 The cost of a reference transaction in drops.
XRPAmount accountReserve {10 * kDropsPerXrp}
 The account reserve requirement in drops.
XRPAmount ownerReserve {2 * kDropsPerXrp}
 The per-owned item reserve requirement in drops.
std::uint32_t gasLimit {kDefaultGasLimit}
 The gas limit for Feature Extensions.
std::uint32_t bytecodeSizeLimit {kDefaultBytecodeSizeLimit}
 The bytecode size limit for Feature Extensions.
std::uint32_t gasPrice {kDefaultGasPrice}
 The price of 1 WASM gas, in micro-drops.

Detailed Description

Fee schedule for startup / standalone, and to vote for.

During voting ledgers, the FeeVote logic will try to move towards these values when injecting fee-setting transactions. A default-constructed Setup contains recommended values.

Definition at line 53 of file src/xrpld/core/Config.h.

Member Function Documentation

◆ toFees()

Fees xrpl::FeeSetup::toFees ( ) const
nodiscard

Convert to a Fees object for use with Ledger construction.

Definition at line 92 of file src/xrpld/core/Config.h.

Member Data Documentation

◆ referenceFee

XRPAmount xrpl::FeeSetup::referenceFee {10}

The cost of a reference transaction in drops.

Definition at line 58 of file src/xrpld/core/Config.h.

◆ accountReserve

XRPAmount xrpl::FeeSetup::accountReserve {10 * kDropsPerXrp}

The account reserve requirement in drops.

Definition at line 63 of file src/xrpld/core/Config.h.

◆ ownerReserve

XRPAmount xrpl::FeeSetup::ownerReserve {2 * kDropsPerXrp}

The per-owned item reserve requirement in drops.

Definition at line 68 of file src/xrpld/core/Config.h.

◆ gasLimit

std::uint32_t xrpl::FeeSetup::gasLimit {kDefaultGasLimit}

The gas limit for Feature Extensions.

Definition at line 73 of file src/xrpld/core/Config.h.

◆ bytecodeSizeLimit

std::uint32_t xrpl::FeeSetup::bytecodeSizeLimit {kDefaultBytecodeSizeLimit}

The bytecode size limit for Feature Extensions.

Definition at line 78 of file src/xrpld/core/Config.h.

◆ gasPrice

std::uint32_t xrpl::FeeSetup::gasPrice {kDefaultGasPrice}

The price of 1 WASM gas, in micro-drops.

Definition at line 83 of file src/xrpld/core/Config.h.