mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
fuzz: CDataStream -> DataStream in script_flags
This commit is contained in:
parent
ddc4b9850a
commit
fa6b87b9ee
1 changed files with 1 additions and 10 deletions
|
@ -7,21 +7,12 @@
|
|||
#include <script/interpreter.h>
|
||||
#include <streams.h>
|
||||
#include <test/util/script.h>
|
||||
#include <version.h>
|
||||
|
||||
#include <test/fuzz/fuzz.h>
|
||||
|
||||
FUZZ_TARGET(script_flags)
|
||||
{
|
||||
CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION);
|
||||
try {
|
||||
int nVersion;
|
||||
ds >> nVersion;
|
||||
ds.SetVersion(nVersion);
|
||||
} catch (const std::ios_base::failure&) {
|
||||
return;
|
||||
}
|
||||
|
||||
DataStream ds{buffer};
|
||||
try {
|
||||
const CTransaction tx(deserialize, TX_WITH_WITNESS, ds);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue