Modularise Ledger.cpp

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2026-03-11 18:39:42 +00:00
parent 0d125b15c6
commit 11ab8ec33a
82 changed files with 354 additions and 303 deletions

View File

@@ -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);