Simplify LedgerMaster:

- Eliminate `tune` member function and allow `LedgerHistory`
  to fully initialize itself.
This commit is contained in:
Nik Bougalis
2022-02-04 18:39:41 -08:00
committed by manojsdoshi
parent 6faaa91850
commit c7e6803956
8 changed files with 12 additions and 47 deletions

View File

@@ -318,9 +318,11 @@ public:
{
using namespace test::jtx;
using namespace std::chrono_literals;
Env env{*this};
Env env{*this, envconfig([](std::unique_ptr<Config> cfg) {
cfg->NODE_SIZE = 0;
return cfg;
})};
Account const gw{"gateway"};
env.app().getLedgerMaster().tune(0, 1h);
auto const USD = gw["USD"];
env.fund(XRP(100000), gw);