Skip to content

Commit

Permalink
fuzz: Remove needless guard
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Sep 22, 2020
1 parent 77771a0 commit fae0548
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/fuzz/signet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <primitives/block.h>
#include <signet.h>
#include <streams.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>

#include <cstdint>
Expand All @@ -28,7 +28,5 @@ void test_one_input(const std::vector<uint8_t>& buffer)
return;
}
(void)CheckSignetBlockSolution(*block, Params().GetConsensus());
if (GetWitnessCommitmentIndex(*block) != NO_WITNESS_COMMITMENT) {
(void)SignetTxs::Create(*block, ConsumeScript(fuzzed_data_provider));
}
(void)SignetTxs::Create(*block, ConsumeScript(fuzzed_data_provider));
}

0 comments on commit fae0548

Please sign in to comment.