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:
Nik Bougalis
2016-02-21 16:56:18 -05:00
parent 77a4218a9e
commit 34e85ccb62
50 changed files with 788 additions and 782 deletions

View File

@@ -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;