mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor treatment of Ledger:
All handling of Ledger in shared_ptr is modified to use a const managed object when the context requires immutable semantics.
This commit is contained in:
@@ -58,9 +58,8 @@ struct Regression_test : public beast::unit_test::suite
|
||||
auto const aliceAmount = XRP(aliceXRP);
|
||||
|
||||
auto next = std::make_shared<Ledger>(
|
||||
open_ledger, *closed,
|
||||
*closed,
|
||||
env.app().timeKeeper().closeTime());
|
||||
next->setClosed();
|
||||
{
|
||||
// Fund alice
|
||||
auto const jt = env.jt(pay(env.master, "alice", aliceAmount));
|
||||
|
||||
Reference in New Issue
Block a user