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/test/fuzz/tx_pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/fuzz/tx_pool.cpp b/src/test/fuzz/tx_pool.cpp index 1ba0f17cc2..5ec3e89d1e 100644 --- a/src/test/fuzz/tx_pool.cpp +++ b/src/test/fuzz/tx_pool.cpp @@ -343,7 +343,7 @@ FUZZ_TARGET(tx_pool, .init = initialize_tx_pool) tx_pool.RollingFeeUpdate(); } if (fuzzed_data_provider.ConsumeBool()) { - const auto& txid = fuzzed_data_provider.ConsumeBool() ? + const auto txid = fuzzed_data_provider.ConsumeBool() ? mut_tx.GetHash().ToUint256() : PickValue(fuzzed_data_provider, txids); const auto delta = fuzzed_data_provider.ConsumeIntegralInRange(-50 * COIN, +50 * COIN); -- cgit v1.2.3