8000 Pass mempool reference to chainstate constructor by maflcko · Pull Request #19826 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pass mempool reference to chainstate constructor #19826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2020

Conversation

maflcko
Copy link
Member
@maflcko maflcko commented Aug 28, 2020

Next step toward #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, ...)

Copy link
Member
@darosior darosior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

Will review / test soon.

edit: didn't want to make it an "approve" review...

@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull reque 8000 st important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Copy link
Member
@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

@practicalswift
Copy link
Contributor

Concept ACK: decoupling is good^Wgreat!

Copy link
Contributor
@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK fa0572d.

Copy link
Member
@darosior darosior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fa0572d

Reviewed, and tested against #18766 rebased on top of (a rebased version of) #19556.
A nice upside of using a reference is that if you intend to do the same for the node context's mempool, it would substantially simplify #18766 :).

Copy link
Member
@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fa0572d, reviewed and tested on Linux Mint 20 (x86_64).

@fjahr
Copy link
Contributor
fjahr commented Aug 30, 2020

Code review ACK b224f98

@maflcko maflcko merged commit 5c910a6 into bitcoin:master Aug 31, 2020
@maflcko maflcko deleted the 2008-valMemRef branch August 31, 2020 05:24
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 31, 2020
fa0572d Pass mempool reference to chainstate constructor (MarcoFalke)

Pull request description:

  Next step toward bitcoin#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, ...)

ACKs for top commit:
  promag:
    Code review ACK fa0572d.
  darosior:
    ACK fa0572d
  hebasto:
    ACK fa0572d, reviewed and tested on Linux Mint 20 (x86_64).

Tree-SHA512: 12184d33ae5797438d03efd012a07ba3e4ffa0d817c7a0877743f3d7a7656fe279280c751554fc035ccd0058166153b6c6c308a98b2d6b13998922617ad95c4c
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jul 15, 2021
Summary:
> Next step toward [[bitcoin/bitcoin#19556 | 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 [[bitcoin/bitcoin#19826 | 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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0