HomePhabricator

Pass mempool pointer to UnloadBlockIndex

Description

Pass mempool pointer to UnloadBlockIndex

Summary:
PR description:
Instead of relying on the implicit mempool global, pass a mempool pointer (which can be 0). This helps with testing, code clarity and unlocks the features described in #19556

This is a backport of core#19604 [2/3]
https://github.com/bitcoin/bitcoin/pull/19604/commits/fac674db200e6b2d5b32069335fb24e713d7b69f

Depends on D9756

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: majcosta

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jul 19 2020, 18:30
PiRKCommitted on Jul 8 2021, 15:09
PiRKPushed on Jul 8 2021, 15:09
Reviewer
Restricted Project
Differential Revision
D9757: Pass mempool pointer to UnloadBlockIndex
Parents
rABC881afbd7aab9: test: Simplify cs_main locks
Branches
Unknown
Tags
Unknown