HomePhabricator

validation: Use existing chain member in CChainState::AcceptBlock and…

Description

validation: Use existing chain member in CChainState::AcceptBlock and LoadGenesisBlock

Summary:
This is a backport of core#21055 [14 & 15/16]
https://github.com/bitcoin/bitcoin/pull/21055/commits/5e4af773809415b71a10e3120cc44854d61c4c19
https://github.com/bitcoin/bitcoin/pull/21055/commits/03f75c42e12a272057adccb6f0077e71f971eeef

Depends on D11220

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Carl Dong <contact@carldong.me>Authored on Oct 6 2020, 20:13
PiRKCommitted on Mar 18 2022, 09:50
PiRKPushed on Mar 18 2022, 09:50
Reviewer
Restricted Project
Differential Revision
D11221: validation: Use existing chain member in CChainState::AcceptBlock and LoadGenesisBlock
Parents
rABC68365eea34d6: validation: Pass in chain to FindBlockPos+SaveBlockToDisk
Branches
Unknown
Tags
Unknown