HomePhabricator

refactor: make active_chain_tip a reference

Description

refactor: make active_chain_tip a reference

Summary:
This PR fixes a TODO introduced in core#21055.

Makes active_chain_tip argument in ContextualCheckTransactionForCurrentBlock function a reference instead of a pointer.

This is a backport of core#25677

See D144 for the difference in the function name

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Aurèle Oulès <aurele@oules.com>Authored on Jul 22 2022, 12:28
PiRKCommitted on Apr 29 2024, 18:16
PiRKPushed on Apr 29 2024, 18:16
Reviewer
Restricted Project
Differential Revision
D16074: refactor: make active_chain_tip a reference
Parents
rABCf73333d93673: refactor: move CBlockIndex#ToString() from header to implementation
Branches
Unknown
Tags
Unknown