refactor: Remove SignetTxs::m_valid and use optional instead

m_valid implies the block solution has been checked, which is not the
case. It only means the txs could be parsed. C++17 comes with
std::optional, so just use that instead.
This commit is contained in:
MarcoFalke
2020-09-22 16:06:02 +02:00
parent fa2ad5dae1
commit 77771a03df
3 changed files with 17 additions and 22 deletions

View File

@@ -29,6 +29,6 @@ void test_one_input(const std::vector<uint8_t>& buffer)
}
(void)CheckSignetBlockSolution(*block, Params().GetConsensus());
if (GetWitnessCommitmentIndex(*block) != NO_WITNESS_COMMITMENT) {
(void)SignetTxs(*block, ConsumeScript(fuzzed_data_provider));
(void)SignetTxs::Create(*block, ConsumeScript(fuzzed_data_provider));
}
}