Skip to content

Commit fa6b87b

Browse files
author
MarcoFalke
committed
fuzz: CDataStream -> DataStream in script_flags
1 parent ddc4b98 commit fa6b87b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/test/fuzz/script_flags.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,12 @@
77
#include <script/interpreter.h>
88
#include <streams.h>
99
#include <test/util/script.h>
10-
#include <version.h>
1110

1211
#include <test/fuzz/fuzz.h>
1312

1413
FUZZ_TARGET(script_flags)
1514
{
16-
CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION);
17-
try {
18-
int nVersion;
19-
ds >> nVersion;
20-
ds.SetVersion(nVersion);
21-
} catch (const std::ios_base::failure&) {
22-
return;
23-
}
24-
15+
DataStream ds{buffer};
2516
try {
2617
const CTransaction tx(deserialize, TX_WITH_WITNESS, ds);
2718

0 commit comments

Comments
 (0)