HomePhabricator

validation: Pass in chainstate to CTxMemPool::removeForReorg

Description

validation: Pass in chainstate to CTxMemPool::removeForReorg

Summary:
Several other parameters are now redundant since they can be safely
obtained from the chainstate given that ::cs_main is locked. These are
now removed.

This is a backport of core#20750 [15/17]
https://github.com/bitcoin/bitcoin/pull/20750/commits/714201881251a787423fbca34f70fed505e9dc28

Depends on D11201

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Carl Dong <contact@carldong.me>Authored on Sep 16 2020, 21:48
PiRKCommitted on Mar 17 2022, 11:04
PiRKPushed on Mar 17 2022, 11:04
Reviewer
Restricted Project
Differential Revision
D11202: validation: Pass in chainstate to CTxMemPool::removeForReorg
Parents
rABCa53d338759bf: validation: Pass in chain to ::TestLockPointValidity
Branches
Unknown
Tags
Unknown