bitcoin/bitcoin — pull request #5135 by domob1812 (2014-10-24 14:17:47+00:00)
Title: Make CBlockIndex* returned by GetDepthInMainChain const.

Make the `CBlockIndex*` (optionally) returned by `GetDepthInMainChain` const. This prevents accidental modification. The result is for reading its properties rather than modifying it.