From faec889f938f90e0b887426db27a15ec0d169399 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 27 Oct 2023 12:38:21 +0200 Subject: refactor: Add LIFETIMEBOUND to all (w)txid getters Then, use the compiler warnings to create copies only where needed. Also, fix iwyu includes while touching the includes. --- src/primitives/transaction.h | 8 ++++---- src/test/fuzz/tx_pool.cpp | 2 +- src/util/transaction_identifier.h | 5 +++-- src/wallet/test/group_outputs_tests.cpp | 2 +- src/wallet/test/wallet_tests.cpp | 2 +- src/wallet/transaction.h | 17 +++++++++-------- 6 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 2516647a84..89deb9de4d 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -6,8 +6,8 @@ #ifndef BITCOIN_PRIMITIVES_TRANSACTION_H #define BITCOIN_PRIMITIVES_TRANSACTION_H +#include #include -#include #include