aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_runner.py
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-12-01 15:17:25 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-12-01 15:19:07 +0100
commit0d7e0a3289baa3b641ca7ab864c5e8af4306f4de (patch)
treeadc796ee37727c0d11dc5e5bcd0bd3d3e30c6b62 /test/functional/test_runner.py
parent13e31dd6548d64a5992f439e74bb424bf88aca04 (diff)
parentb4058ed9c6e1f23720afa0b383c56a9aaed86dcd (diff)
Merge #11337: Fix code constness in CBlockIndex::GetAncestor() overloads
b4058ed Fix code constness in CBlockIndex::GetAncestor() overloads (Dan Raviv) Pull request description: 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. Tree-SHA512: 545a8639bc52502ea06dbd924e8fabec6274fa69b43e3b8966a7987ce4dae6fb2498f623730fde7ed0e47478941c7f8baa2e76a12018134ff7c14c0dfa25ba3a
Diffstat (limited to 'test/functional/test_runner.py')
0 files changed, 0 insertions, 0 deletions