mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Inject Application (cont.)
This commit is contained in:
committed by
Edward Hennis
parent
eed1a891a7
commit
ffbcb96eff
@@ -57,7 +57,7 @@ Env::Env (beast::unit_test::suite& test_)
|
||||
KeyType::secp256k1,
|
||||
generateSeed("masterpassphrase")))
|
||||
, closed_ (std::make_shared<Ledger>(
|
||||
create_genesis, config))
|
||||
create_genesis, config, app().family()))
|
||||
, cachedSLEs_ (std::chrono::seconds(5), stopwatch_)
|
||||
, openLedger (closed_, config, cachedSLEs_, journal)
|
||||
{
|
||||
@@ -83,7 +83,8 @@ Env::close(NetClock::time_point const& closeTime)
|
||||
clock.set(closeTime);
|
||||
// VFALCO TODO Fix the Ledger constructor
|
||||
auto next = std::make_shared<Ledger>(
|
||||
open_ledger, *closed_);
|
||||
open_ledger, *closed_,
|
||||
app().timeKeeper().closeTime());
|
||||
next->setClosed();
|
||||
#if 0
|
||||
// Build a SHAMap, put all the transactions
|
||||
|
||||
Reference in New Issue
Block a user