Make the CBlockIndex* (optionally) returned by GetDepthInMainChain const. This prevents accidental modification. The result is for reading its properties rather than modifying it.
Make CBlockIndex* returned by GetDepthInMainChain const. #5135
pull domob1812 wants to merge 1 commits into bitcoin:master from domob1812:btc-depthinchain-const changing 2 files +6 −6-
domob1812 commented at 2:17 PM on October 24, 2014: contributor
-
a31e8bad53
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.
-
sipa commented at 5:00 PM on October 24, 2014: member
utACK
- gavinandresen merged this on Oct 27, 2014
- gavinandresen closed this on Oct 27, 2014
- gavinandresen referenced this in commit 35ece7dd07 on Oct 27, 2014
- domob1812 deleted the branch on Oct 27, 2014
- MarcoFalke locked this on Sep 8, 2021