mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 18:15:50 +00:00
OpenLedger::current returns OpenView const.
This commit is contained in:
@@ -111,7 +111,7 @@ public:
|
||||
non-modifiable snapshot of the open ledger
|
||||
at the time of the call.
|
||||
*/
|
||||
std::shared_ptr<ReadView const>
|
||||
std::shared_ptr<OpenView const>
|
||||
current() const;
|
||||
|
||||
/** Modify the open ledger
|
||||
|
||||
@@ -44,7 +44,7 @@ OpenLedger::empty() const
|
||||
return current_->txCount() == 0;
|
||||
}
|
||||
|
||||
std::shared_ptr<ReadView const>
|
||||
std::shared_ptr<OpenView const>
|
||||
OpenLedger::current() const
|
||||
{
|
||||
std::lock_guard<
|
||||
|
||||
@@ -169,7 +169,7 @@ public:
|
||||
will not be visible.
|
||||
|
||||
*/
|
||||
std::shared_ptr<ReadView const>
|
||||
std::shared_ptr<OpenView const>
|
||||
open() const;
|
||||
|
||||
/** Returns the last closed ledger.
|
||||
|
||||
@@ -91,7 +91,7 @@ Env::Env (beast::unit_test::suite& test_)
|
||||
Pathfinder::initPathTable();
|
||||
}
|
||||
|
||||
std::shared_ptr<ReadView const>
|
||||
std::shared_ptr<OpenView const>
|
||||
Env::open() const
|
||||
{
|
||||
return openLedger.current();
|
||||
|
||||
Reference in New Issue
Block a user