3#include <xrpl/basics/Log.h>
4#include <xrpl/beast/utility/Journal.h>
5#include <xrpl/protocol/XRPAmount.h>
37 JLOG(
j_.trace()) <<
"setRemoteFee: " << f;
89 JLOG(
j_.trace()) <<
"setClusterFee: " << fee;
133scaleFeeLoad(XRPAmount fee, LoadFeeTrack
const& feeTrack, Fees
const& fees,
bool bUnlimited);
A generic endpoint for log messages.
static Sink & getNullSink()
Returns a Sink which does nothing.
static constexpr std::uint32_t kLftNormalFee
static constexpr std::uint32_t kLftFeeDecFraction
std::uint32_t clusterTxnLoadFee_
void setRemoteFee(std::uint32_t f)
std::uint32_t getClusterFee() const
std::uint32_t getLocalFee() const
std::uint32_t remoteTxnLoadFee_
std::uint32_t getRemoteFee() const
std::uint32_t getLoadFactor() const
void setClusterFee(std::uint32_t fee)
static std::uint32_t getLoadBase()
bool isLoadedLocal() const
static constexpr std::uint32_t kLftFeeMax
std::uint32_t localTxnLoadFee_
std::uint32_t raiseCount_
static constexpr std::uint32_t kLftFeeIncFraction
bool isLoadedCluster() const
std::pair< std::uint32_t, std::uint32_t > getScalingFactors() const
LoadFeeTrack(beast::Journal journal=beast::Journal(beast::Journal::getNullSink()))
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
XRPAmount scaleFeeLoad(XRPAmount fee, LoadFeeTrack const &feeTrack, Fees const &fees, bool bUnlimited)
Reflects the fee settings for a particular ledger.