HomePhabricator

Use CTransactionRef where applicable in coins_tests

Description

Use CTransactionRef where applicable in coins_tests

Summary:
This avoids doing copies of CTransaction in the tests. This will make the test to work with a non copyable CTransaction.

Also removed the forward declaration of the UpdateCoins function in favor of a proper include. This will prevent the test from failing to build when the prototype changes.

Test Plan:

ninja check-bitcoin-coins_tests

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Dec 19 2022, 18:57
FabienPushed on Dec 20 2022, 14:33
Reviewer
Restricted Project
Differential Revision
D12920: Use CTransactionRef where applicable in coins_tests
Parents
rABC543e0468399a: Use no test fixture for the RCU unit tests
Branches
Unknown
Tags
Unknown