mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add units to all fee calculations:
* Uses existing XRPAmount with units for drops, and a new TaggedFee for fee units (LoadFeeTrack), and fee levels (TxQ). * Resolves #2451
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#ifndef RIPPLE_PROTOCOL_STVALIDATION_H_INCLUDED
|
||||
#define RIPPLE_PROTOCOL_STVALIDATION_H_INCLUDED
|
||||
|
||||
#include <ripple/basics/FeeUnits.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/protocol/PublicKey.h>
|
||||
#include <ripple/protocol/STObject.h>
|
||||
@@ -100,9 +101,9 @@ public:
|
||||
struct FeeSettings
|
||||
{
|
||||
boost::optional<std::uint32_t> loadFee;
|
||||
boost::optional<std::uint64_t> baseFee;
|
||||
boost::optional<std::uint32_t> reserveBase;
|
||||
boost::optional<std::uint32_t> reserveIncrement;
|
||||
boost::optional<XRPAmount> baseFee;
|
||||
boost::optional<XRPAmount> reserveBase;
|
||||
boost::optional<XRPAmount> reserveIncrement;
|
||||
};
|
||||
|
||||
/** Construct, sign and trust a new STValidation
|
||||
|
||||
Reference in New Issue
Block a user