diff options
author | MacroFake <falke.marco@gmail.com> | 2022-08-12 08:31:41 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-08-12 08:32:15 +0200 |
commit | 27724c23f72b17142f95e082e23eee26e93791f4 (patch) | |
tree | c1012b08ececccb3a2a980f94ae5625f7170c087 /src/validation.h | |
parent | 5d294bccbae51b21e10caf5d699a401f69462184 (diff) | |
parent | 9376a6dae41022874df3b9302667796a9fb7b81d (diff) | |
download | bitcoin-27724c23f72b17142f95e082e23eee26e93791f4.tar.xz |
Merge bitcoin/bitcoin#25677: refactor: make active_chain_tip a reference
9376a6dae41022874df3b9302667796a9fb7b81d refactor: make active_chain_tip a reference (Aurèle Oulès)
Pull request description:
This PR fixes a TODO introduced in #21055.
Makes `active_chain_tip` argument in `CheckFinalTxAtTip` function a reference instead of a pointer.
ACKs for top commit:
dongcarl:
ACK 9376a6dae41022874df3b9302667796a9fb7b81d
Tree-SHA512: c36d1769e0b9598b7f79334704b26b73e958d54caa3bd7e4eff954f3964fcf3f5e3a44a5a760497afad51b76e1614c86314fe035e4083c855e3574a620de7f4d
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index 7c0294d1ad..17286c7910 100644 --- a/src/validation.h +++ b/src/validation.h @@ -261,7 +261,7 @@ PackageMempoolAcceptResult ProcessNewPackage(CChainState& active_chainstate, CTx /** * Check if transaction will be final in the next block to be created. */ -bool CheckFinalTxAtTip(const CBlockIndex* active_chain_tip, const CTransaction& tx) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); +bool CheckFinalTxAtTip(const CBlockIndex& active_chain_tip, const CTransaction& tx) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); /** * Check if transaction will be BIP68 final in the next block to be created on top of tip. |