diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-12-07 11:31:28 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-12-07 14:59:33 +0100 |
commit | faac31521bb7ecbf999541cf918d3750ff589de4 (patch) | |
tree | 57527364e2c2440ef0f93b6f971b1baa573ab7a6 /src/test/fuzz/script_sigcache.cpp | |
parent | eab63b971d5fc3408214a958678a235bf454af99 (diff) |
Remove unused and confusing CTransaction constructor
Diffstat (limited to 'src/test/fuzz/script_sigcache.cpp')
-rw-r--r-- | src/test/fuzz/script_sigcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/script_sigcache.cpp b/src/test/fuzz/script_sigcache.cpp index 87af71897b..d67654bde3 100644 --- a/src/test/fuzz/script_sigcache.cpp +++ b/src/test/fuzz/script_sigcache.cpp @@ -29,7 +29,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size()); const std::optional<CMutableTransaction> mutable_transaction = ConsumeDeserializable<CMutableTransaction>(fuzzed_data_provider); - const CTransaction tx = mutable_transaction ? CTransaction{*mutable_transaction} : CTransaction{}; + const CTransaction tx{mutable_transaction ? *mutable_transaction : CMutableTransaction{}}; const unsigned int n_in = fuzzed_data_provider.ConsumeIntegral<unsigned int>(); const CAmount amount = ConsumeMoney(fuzzed_data_provider); const bool store = fuzzed_data_provider.ConsumeBool(); |