HomePhabricator

validation: Pass in chainstate to CTxMemPool::check

Description

validation: Pass in chainstate to CTxMemPool::check

Summary:
This is the only instance where validation reaches for something outside of it.

This is a backport of core#21055 [11/16]
https://github.com/bitcoin/bitcoin/pull/21055/commits/4744efc9bae8b22efb76152a3c045d054c880399

Depends on D11215

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Carl Dong <contact@carldong.me>Authored on Sep 9 2020, 20:05
PiRKCommitted on Mar 18 2022, 09:50
PiRKPushed on Mar 18 2022, 09:50
Reviewer
Restricted Project
Differential Revision
D11216: validation: Pass in chainstate to CTxMemPool::check
Parents
rABCb2b8bc278952: validation: Use *this in CChainState::InvalidateBlock
Branches
Unknown
Tags
Unknown