diff options
author | Dan Raviv <dan@soundradix.com> | 2017-09-15 11:13:25 +0300 |
---|---|---|
committer | Dan Raviv <dan@soundradix.com> | 2017-09-15 11:13:25 +0300 |
commit | b4058ed9c6e1f23720afa0b383c56a9aaed86dcd (patch) | |
tree | 85996f9227622ccc99db03d711da5a0fd0bb9646 /README.md | |
parent | 0f399a9ff227896265cafab9b2e9fab6cdb9b5b9 (diff) |
Fix code constness in CBlockIndex::GetAncestor() overloads
Make the non-const overload of CBlockIndex::GetAncestor() reuse the const overload implementation instead of the other way around. This way, the constness of the const overload implementation is guaranteed. The other way around, it was possible to implement the non-const overload in a way which mutates the object, and since that implementation would be called even for const objects (due to the reuse), we would get undefined behavior.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions