File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
static void DeserializeBlockTest (benchmark::Bench& bench)
20
20
{
21
- CDataStream stream (benchmark::data::block413567, SER_NETWORK, PROTOCOL_VERSION );
21
+ DataStream stream (benchmark::data::block413567);
22
22
std::byte a{0 };
23
23
stream.write ({&a, 1 }); // Prevent compaction
24
24
@@ -32,7 +32,7 @@ static void DeserializeBlockTest(benchmark::Bench& bench)
32
32
33
33
static void DeserializeAndCheckBlockTest (benchmark::Bench& bench)
34
34
{
35
- CDataStream stream (benchmark::data::block413567, SER_NETWORK, PROTOCOL_VERSION );
35
+ DataStream stream (benchmark::data::block413567);
36
36
std::byte a{0 };
37
37
stream.write ({&a, 1 }); // Prevent compaction
38
38
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ static void VerifyScriptBench(benchmark::Bench& bench)
61
61
assert (success);
62
62
63
63
#if defined(HAVE_CONSENSUS_LIB)
64
- CDataStream stream (SER_NETWORK, PROTOCOL_VERSION) ;
64
+ DataStream stream;
65
65
stream << TX_WITH_WITNESS (txSpend);
66
66
int csuccess = bitcoinconsensus_verify_script_with_amount (
67
67
txCredit.vout [0 ].scriptPubKey .data (),
You can’t perform that action at this time.
0 commit comments