Page MenuHomePhabricator

Pass mempool reference to chainstate constructor
ClosedPublic

Authored by PiRK on Jul 13 2021, 20:44.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC0158b5aeebf6: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable