HomePhabricator

Replace pindex pointer with block reference

Description

Replace pindex pointer with block reference

Summary:
pindex can not be nullptr, so document that.

This concludes backport of core#27570
https://github.com/bitcoin/bitcoin/pull/27570/commits/fa3f74a40efa0db3af31438e9250c41bc7406749
(partial) https://github.com/bitcoin/bitcoin/pull/27570/commits/fa5d7c39eb992467e43b12db213b27913374fb83

Depends on D16015

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16016

Details

Provenance
MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>Authored on May 4 2023, 10:30
PiRKCommitted on Apr 19 2024, 06:04
PiRKPushed on Apr 19 2024, 06:04
Reviewer
Restricted Project
Differential Revision
D16016: Replace pindex pointer with block reference
Parents
rABCd893f446d0af: Add BlockManagerOpts::chainparams reference
Branches
Unknown
Tags
Unknown