mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tidy up genesis Ledger construction
This commit is contained in:
@@ -146,8 +146,11 @@ class View_test
|
||||
void
|
||||
testLedger()
|
||||
{
|
||||
Config const config;
|
||||
using namespace jtx;
|
||||
auto const ledger = Env::genesis();
|
||||
auto const ledger =
|
||||
std::make_shared<Ledger>(
|
||||
create_genesis, config);
|
||||
wipe(*ledger);
|
||||
ReadView& v = *ledger;
|
||||
succ(v, 0, boost::none);
|
||||
@@ -388,7 +391,10 @@ class View_test
|
||||
// ApplyView on that, then another ApplyView,
|
||||
// erase the item, apply.
|
||||
{
|
||||
auto const ledger = Env::genesis();
|
||||
Config const config;
|
||||
auto const ledger =
|
||||
std::make_shared<Ledger>(
|
||||
create_genesis, config);
|
||||
wipe(*ledger);
|
||||
ledger->rawInsert(sle(1));
|
||||
ReadView& v0 = *ledger;
|
||||
|
||||
Reference in New Issue
Block a user