From 464447256be52a2e58253cdf7253d4c82d8304e4 Mon Sep 17 00:00:00 2001 From: MacroFake Date: Tue, 26 Jul 2022 13:14:33 +0200 Subject: [PATCH] Merge bitcoin/bitcoin#25694: refactor: Make CTransaction constructor explicit fa2247a9f9754d90ea60f254f6c0ed881c55772b refactor: Make CTransaction constructor explicit (MacroFake) Pull request description: It involves calculating two hashes, so the performance impact should be made explicit. Also, add the module to iwyu. ACKs for top commit: aureleoules: ACK fa2247a9f9754d90ea60f254f6c0ed881c55772b. hebasto: ACK fa2247a9f9754d90ea60f254f6c0ed881c55772b, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: e236c352a472c7edfd4f0319a5a16a59f627b0ab7eb8531b53c75d730a3fa3e990a939978dcd952cd73e647925fc79bfa6d9fd87624bbc3ef180f40f95acef19 --- src/primitives/transaction.cpp | 7 ++++++- src/primitives/transaction.h | 14 ++++++++++++-- src/test/evo_assetlocks_tests.cpp | 4 ++-- src/test/script_tests.cpp | 20 ++++++++++---------- 4 files changed, 30 insertions(+), 15 deletions(-) diff --git a/src/primitives/transaction.cpp b/src/primitives/transaction.cpp index 60d4a3152dcf..a56f8c3677f4 100644 --- a/src/primitives/transaction.cpp +++ b/src/primitives/transaction.cpp @@ -7,10 +7,15 @@ #include #include +#include