HomePhabricator

Pass mempool reference to chainstate constructor

Description

Pass mempool reference to chainstate constructor

Summary:

Next step toward core#19556

Instead of relying on the mempool global, each chainstate is given a reference to a mempool to keep up to date with the tip (block connections, disconnections, reorgs, ...)

This is a backport of core#19826

Most differences from Core in validation.cpp are explained by D1667, D7203 & D7439.

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jul 28 2020, 05:40
PiRKCommitted on Jul 15 2021, 09:47
PiRKPushed on Jul 15 2021, 09:47
Reviewer
Restricted Project
Differential Revision
D9780: Pass mempool reference to chainstate constructor
Parents
rABC1f7c04b34ac3: [avalanche] Improve the delegateavalancheproof error messages
Branches
Unknown
Tags
Unknown