mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user