mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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:
@@ -55,7 +55,7 @@ struct Regression_test : public beast::unit_test::suite
|
||||
auto closed = std::make_shared<Ledger>(
|
||||
create_genesis, env.app().config(),
|
||||
std::vector<uint256>{}, env.app().family());
|
||||
auto expectedDrops = SYSTEM_CURRENCY_START;
|
||||
auto expectedDrops = INITIAL_XRP;
|
||||
BEAST_EXPECT(closed->info().drops == expectedDrops);
|
||||
|
||||
auto const aliceXRP = 400;
|
||||
@@ -110,7 +110,7 @@ struct Regression_test : public beast::unit_test::suite
|
||||
|
||||
BEAST_EXPECT(balance == XRP(0));
|
||||
}
|
||||
expectedDrops -= aliceXRP * dropsPerXRP<int>::value;
|
||||
expectedDrops -= aliceXRP * dropsPerXRP;
|
||||
BEAST_EXPECT(next->info().drops == expectedDrops);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user