mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Modularise Ledger.cpp
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
@@ -44,8 +44,10 @@ struct Regression_test : public beast::unit_test::suite
|
||||
// The low balance scenario can not deterministically
|
||||
// be reproduced against an open ledger. Make a local
|
||||
// closed ledger and work with it directly.
|
||||
Rules const rules{env.app().config().features};
|
||||
Fees const fees = env.app().config().FEES.toFees();
|
||||
auto closed = std::make_shared<Ledger>(
|
||||
create_genesis, env.app().config(), std::vector<uint256>{}, env.app().getNodeFamily());
|
||||
create_genesis, rules, fees, std::vector<uint256>{}, env.app().getNodeFamily());
|
||||
auto expectedDrops = INITIAL_XRP;
|
||||
BEAST_EXPECT(closed->header().drops == expectedDrops);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user