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:
@@ -79,13 +79,13 @@ public:
|
||||
PrettyAmount(0u);
|
||||
PrettyAmount(1u);
|
||||
PrettyAmount(-1);
|
||||
static_assert(! std::is_constructible<
|
||||
static_assert(! std::is_trivially_constructible<
|
||||
PrettyAmount, char>::value, "");
|
||||
static_assert(! std::is_constructible<
|
||||
static_assert(! std::is_trivially_constructible<
|
||||
PrettyAmount, unsigned char>::value, "");
|
||||
static_assert(! std::is_constructible<
|
||||
static_assert(! std::is_trivially_constructible<
|
||||
PrettyAmount, short>::value, "");
|
||||
static_assert(! std::is_constructible<
|
||||
static_assert(! std::is_trivially_constructible<
|
||||
PrettyAmount, unsigned short>::value, "");
|
||||
|
||||
try
|
||||
@@ -367,7 +367,7 @@ public:
|
||||
env(noop("alice"), msig("carol"), fee(2 * baseFee));
|
||||
env(noop("alice"), msig("bob", "carol"), fee(3 * baseFee));
|
||||
env(noop("alice"), msig("bob", "carol", "dilbert"),
|
||||
fee(4 * baseFee), ter(tefBAD_SIGNATURE));
|
||||
fee(4 * baseFee), ter(tefBAD_SIGNATURE));
|
||||
|
||||
env(signers("alice", none));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user