HomePhabricator

validation: pass ChainstateRole for validationinterface calls

Description

validation: pass ChainstateRole for validationinterface calls

Summary:
This allows consumers to decide how to handle events from background or assumedvalid chainstates.
For now there is no change in behavior.

This is a partial backport of core#27596
https://github.com/bitcoin/bitcoin/pull/27596/commits/c6af23c5179cc383f8e6c275373af8d11e6a989f
https://github.com/bitcoin/bitcoin/pull/27596/commits/4d8f4dcb450d31e4847804e62bf91545b949fa14

Depends on D17889

Test Plan:
ninja all check-all
Tested on my dev branch (full mainnet IBD + function test)

Reviewers: #bitcoin_abc, roqqit

Reviewed By: #bitcoin_abc, roqqit

Subscribers: Fabien, roqqit

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

Details

Provenance
James O'Beirne <james.obeirne@pm.me>Authored on Nov 10 2022, 17:03
PiRKCommitted on Fri, Apr 4, 12:14
PiRKPushed on Fri, Apr 4, 12:14
Reviewer
Restricted Project
Differential Revision
D17890: validation: pass ChainstateRole for validationinterface calls
Parents
rABC1fe0d049d7b0: validation: only call UpdatedBlockTip for active chainstate
Branches
Unknown
Tags
Unknown