diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-25 12:13:56 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-25 12:16:54 +0200 |
commit | fa2247a9f9754d90ea60f254f6c0ed881c55772b (patch) | |
tree | 89d03db0a16a80748c432c746eaaae05e1ef9468 /src/primitives/transaction.cpp | |
parent | f27d5f6305b6074186aafcb80f9b249cbd523196 (diff) | |
download | bitcoin-fa2247a9f9754d90ea60f254f6c0ed881c55772b.tar.xz |
refactor: Make CTransaction constructor explicit
It involves calculating two hashes, so the performance impact should be
made explicit.
Also, add the module to iwyu.
Diffstat (limited to 'src/primitives/transaction.cpp')
-rw-r--r-- | src/primitives/transaction.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/primitives/transaction.cpp b/src/primitives/transaction.cpp index f7f6ae4480..ec48194ee9 100644 --- a/src/primitives/transaction.cpp +++ b/src/primitives/transaction.cpp @@ -7,10 +7,15 @@ #include <consensus/amount.h> #include <hash.h> +#include <script/script.h> +#include <serialize.h> #include <tinyformat.h> +#include <uint256.h> #include <util/strencodings.h> +#include <version.h> -#include <assert.h> +#include <cassert> +#include <stdexcept> std::string COutPoint::ToString() const { |