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