aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fuzz/block.cpp')
-rw-r--r--src/test/fuzz/block.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/fuzz/block.cpp b/src/test/fuzz/block.cpp
index 8c97fba323..e38b871747 100644
--- a/src/test/fuzz/block.cpp
+++ b/src/test/fuzz/block.cpp
@@ -13,7 +13,6 @@
#include <test/fuzz/fuzz.h>
#include <util/chaintype.h>
#include <validation.h>
-#include <version.h>
#include <cassert>
#include <string>
@@ -25,13 +24,10 @@ void initialize_block()
FUZZ_TARGET(block, .init = initialize_block)
{
- CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION);
+ DataStream ds{buffer};
CBlock block;
try {
- int nVersion;
- ds >> nVersion;
- ds.SetVersion(nVersion);
- ds >> block;
+ ds >> TX_WITH_WITNESS(block);
} catch (const std::ios_base::failure&) {
return;
}