29 if (buffer.size() > 100'000)
return;
45 for (
unsigned i = 0; i < tx.
vin.size(); ++i) {
57 for (
unsigned i = 0; i < tx.
vin.size(); ++i) {
79 }
catch (
const std::ios_base::failure&) {
bool MoneyRange(const CAmount &nValue)
The basic transaction that is broadcasted on the network and contained in blocks.
const std::vector< CTxIn > vin
An output of a transaction.
Minimal stream for reading from an existing byte array by std::span.
static constexpr script_verify_flags from_int(value_type f)
bool VerifyScript(const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, script_verify_flags flags, const BaseSignatureChecker &checker, ScriptError *serror)
@ ASSERT_FAIL
Abort execution through assertion failure (for consensus code)
static constexpr TransactionSerParams TX_WITH_WITNESS
enum ScriptError_t ScriptError
static SpanReader & operator>>(SpanReader &ds, script_verify_flags &f)
constexpr deserialize_type deserialize
void Init(const T &tx, std::vector< CTxOut > &&spent_outputs, bool force=false)
Initialize this PrecomputedTransactionData with transaction data.
std::vector< CTxOut > m_spent_outputs
bool IsValidFlagCombination(script_verify_flags flags)
Flags that are not forbidden by an assert in script validation.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.