bitcoin/bitcoin — pull request #5206 by apoelstra (2014-11-04 17:33:44+00:00)
Title: CCoinsViewMemPool cleanup

Move the mempool lock into CCoinsViewMemPool, since the existing code
always manually locks the mempool (with the lock having same lifetime
as the view!).

Move a call to CMempool::pruneSpent into CCoinsViewMemPool::GetCoins,
since CCoinsViewMemPool::GetCoins is called only once in the codebase,
followed by a call to pruneSpent with a `TODO` suggesting it be moved.