Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<RippleState::pointer> const&
- RippleLineCache::getRippleLines (Account const& accountID)
- {
- {
- ScopedLockType sl (mLock);
- auto it = mRLMap.find (accountID);
- if (it != mRLMap.end ())
- return it->second;
- }
- // It's not in the cache, so build it
- auto lines = ripple::getRippleStateItems (accountID, mLedger);
- {
- ScopedLockType sl (mLock);
- // We must return a reference to the cached version
- return mRLMap.emplace (accountID, std::move (lines)).first->second;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment