|
rippled
|
Manages the current fee schedule. More...
#include <LoadFeeTrack.h>

Public Member Functions | |
| LoadFeeTrack (beast::Journal journal=beast::Journal(beast::Journal::getNullSink())) | |
| ~LoadFeeTrack ()=default | |
| void | setRemoteFee (std::uint32_t f) |
| std::uint32_t | getRemoteFee () const |
| std::uint32_t | getLocalFee () const |
| std::uint32_t | getClusterFee () const |
| std::uint32_t | getLoadBase () const |
| std::uint32_t | getLoadFactor () const |
| std::pair< std::uint32_t, std::uint32_t > | getScalingFactors () const |
| void | setClusterFee (std::uint32_t fee) |
| bool | raiseLocalFee () |
| bool | lowerLocalFee () |
| bool | isLoadedLocal () const |
| bool | isLoadedCluster () const |
Private Attributes | |
| beast::Journal const | j_ |
| std::mutex | lock_ |
| std::uint32_t | localTxnLoadFee_ |
| std::uint32_t | remoteTxnLoadFee_ |
| std::uint32_t | clusterTxnLoadFee_ |
| std::uint32_t | raiseCount_ |
Static Private Attributes | |
| static std::uint32_t constexpr | lftNormalFee |
| static std::uint32_t constexpr | lftFeeIncFraction |
| static std::uint32_t constexpr | lftFeeDecFraction |
| static std::uint32_t constexpr | lftFeeMax = lftNormalFee * 1000000 |
Manages the current fee schedule.
The "base" fee is the cost to send a reference transaction under no load, expressed in millionths of one XRP.
The "load" fee is how much the local server currently charges to send a reference transaction. This fee fluctuates based on the load of the server.
Definition at line 44 of file LoadFeeTrack.h.
|
explicit |
Definition at line 47 of file LoadFeeTrack.h.
|
default |
| void ripple::LoadFeeTrack::setRemoteFee | ( | std::uint32_t | f | ) |
Definition at line 60 of file LoadFeeTrack.h.
| std::uint32_t ripple::LoadFeeTrack::getRemoteFee | ( | ) | const |
Definition at line 68 of file LoadFeeTrack.h.
| std::uint32_t ripple::LoadFeeTrack::getLocalFee | ( | ) | const |
Definition at line 75 of file LoadFeeTrack.h.
| std::uint32_t ripple::LoadFeeTrack::getClusterFee | ( | ) | const |
Definition at line 82 of file LoadFeeTrack.h.
| std::uint32_t ripple::LoadFeeTrack::getLoadBase | ( | ) | const |
Definition at line 89 of file LoadFeeTrack.h.
| std::uint32_t ripple::LoadFeeTrack::getLoadFactor | ( | ) | const |
Definition at line 95 of file LoadFeeTrack.h.
| std::pair< std::uint32_t, std::uint32_t > ripple::LoadFeeTrack::getScalingFactors | ( | ) | const |
Definition at line 103 of file LoadFeeTrack.h.
| void ripple::LoadFeeTrack::setClusterFee | ( | std::uint32_t | fee | ) |
Definition at line 113 of file LoadFeeTrack.h.
| bool ripple::LoadFeeTrack::raiseLocalFee | ( | ) |
Definition at line 32 of file LoadFeeTrack.cpp.
| bool ripple::LoadFeeTrack::lowerLocalFee | ( | ) |
Definition at line 60 of file LoadFeeTrack.cpp.
| bool ripple::LoadFeeTrack::isLoadedLocal | ( | ) | const |
Definition at line 126 of file LoadFeeTrack.h.
| bool ripple::LoadFeeTrack::isLoadedCluster | ( | ) | const |
Definition at line 133 of file LoadFeeTrack.h.
|
staticconstexprprivate |
Definition at line 141 of file LoadFeeTrack.h.
|
staticconstexprprivate |
Definition at line 143 of file LoadFeeTrack.h.
|
staticconstexprprivate |
Definition at line 145 of file LoadFeeTrack.h.
|
staticconstexprprivate |
Definition at line 147 of file LoadFeeTrack.h.
|
private |
Definition at line 149 of file LoadFeeTrack.h.
|
mutableprivate |
Definition at line 150 of file LoadFeeTrack.h.
|
private |
Definition at line 152 of file LoadFeeTrack.h.
|
private |
Definition at line 153 of file LoadFeeTrack.h.
|
private |
Definition at line 155 of file LoadFeeTrack.h.
|
private |
Definition at line 156 of file LoadFeeTrack.h.