 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
26 }
catch (
const std::ios_base::failure&) {
38 unsigned int fuzzed_flags;
41 std::vector<CTxOut> spent_outputs;
42 for (
unsigned i = 0; i < tx.
vin.size(); ++i) {
49 spent_outputs.push_back(prevout);
52 txdata.
Init(tx, std::move(spent_outputs));
54 for (
unsigned i = 0; i < tx.
vin.size(); ++i) {
76 }
catch (
const std::ios_base::failure&) {
const std::vector< CTxIn > vin
std::vector< CTxOut > m_spent_outputs
bool IsValidFlagCombination(unsigned flags)
Flags that are not forbidden by an assert in script validation.
void initialize_script_flags()
static bool verify_flags(unsigned int flags)
Check that all specified flags are part of the libconsensus interface.
bool MoneyRange(const CAmount &nValue)
FUZZ_TARGET_INIT(script_flags, initialize_script_flags)
bool VerifyScript(const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags, const BaseSignatureChecker &checker, ScriptError *serror)
The basic transaction that is broadcasted on the network and contained in blocks.
enum ScriptError_t ScriptError
An output of a transaction.
void Init(const T &tx, std::vector< CTxOut > &&spent_outputs, bool force=false)
Initialize this PrecomputedTransactionData with transaction data.
@ ASSERT_FAIL
Abort execution through assertion failure (for consensus code)
Users of this module must hold an ECCVerifyHandle.
Double ended buffer combining vector and stream-like interfaces.
constexpr deserialize_type deserialize
static const int INIT_PROTO_VERSION
initial proto version, to be increased after version/verack negotiation