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:
@@ -64,8 +64,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
Ledger::pointer acquire (
|
||||
uint256 const& hash, std::uint32_t seq, InboundLedger::fcReason reason)
|
||||
std::shared_ptr<Ledger>
|
||||
acquire (
|
||||
uint256 const& hash,
|
||||
std::uint32_t seq,
|
||||
InboundLedger::fcReason reason)
|
||||
{
|
||||
assert (hash.isNonZero ());
|
||||
bool isNew = true;
|
||||
|
||||
Reference in New Issue
Block a user