bitcoin/bitcoin — pull request #4822 by sipa (2014-09-02 19:34:56+00:00)
Title: Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins

Both GetCoins and HaveCoins require a hashtable lookup, while most often we need both. Combine them into AccessCoins which returns a pointer rather than a reference (and gets rid of the overloaded name).