20 #ifndef RIPPLE_CORE_LOADFEETRACK_H_INCLUDED
21 #define RIPPLE_CORE_LOADFEETRACK_H_INCLUDED
23 #include <ripple/basics/FeeUnits.h>
24 #include <ripple/basics/Log.h>
25 #include <ripple/beast/utility/Journal.h>
26 #include <ripple/json/json_value.h>
62 JLOG(
j_.
trace()) <<
"setRemoteFee: " << f;
115 JLOG(
j_.
trace()) <<
"setClusterFee: " << fee;
static constexpr std::uint32_t lftFeeMax
Stream trace() const
Severity stream access functions.
static constexpr std::uint32_t lftFeeDecFraction
std::uint32_t getLoadBase() const
static Sink & getNullSink()
Returns a Sink which does nothing.
LoadFeeTrack(beast::Journal journal=beast::Journal(beast::Journal::getNullSink()))
std::uint32_t getRemoteFee() const
std::uint32_t clusterTxnLoadFee_
bool isLoadedLocal() const
Reflects the fee settings for a particular ledger.
std::uint32_t getLocalFee() const
std::pair< std::uint32_t, std::uint32_t > getScalingFactors() const
static constexpr std::uint32_t lftFeeIncFraction
Manages the current fee schedule.
A generic endpoint for log messages.
std::uint32_t getClusterFee() const
std::uint32_t remoteTxnLoadFee_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::uint32_t getLoadFactor() const
bool isLoadedCluster() const
void setClusterFee(std::uint32_t fee)
XRPAmount scaleFeeLoad(XRPAmount fee, LoadFeeTrack const &feeTrack, Fees const &fees, bool bUnlimited)
std::uint32_t raiseCount_
void setRemoteFee(std::uint32_t f)
static constexpr std::uint32_t lftNormalFee
std::uint32_t localTxnLoadFee_