diff options
author | Carl Dong <contact@carldong.me> | 2021-02-22 11:46:21 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-22 11:46:37 -0500 |
commit | 9da106be4db692fa5db7b4de79f9cf7bfef37075 (patch) | |
tree | 6b2740bfba52c1b4402893c892770fdcce56d109 /src/txdb.h | |
parent | 7fca189a2a9a524834d9485c4e391877c00c1971 (diff) |
validation: Check chain tip is non-null in CheckFinalTx
...also update comments to remove mention of ::ChainActive()
From: https://github.com/bitcoin/bitcoin/pull/20750#discussion_r579400663
> Also, what about passing a const reference instead of a pointer? I
> know this is only theoretical, but previously if the tip was nullptr,
> then Height() evaluated to -1, now it evaluates to UB
Diffstat (limited to 'src/txdb.h')
0 files changed, 0 insertions, 0 deletions