Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
tx_in.cpp
Go to the documentation of this file.
1// Copyright (c) 2019-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
6#include <core_memusage.h>
7#include <policy/policy.h>
9#include <streams.h>
10#include <test/fuzz/fuzz.h>
11
12#include <cassert>
13
15{
17 try {
18 SpanReader{buffer} >> tx_in;
19 } catch (const std::ios_base::failure&) {
20 return;
21 }
22
26
27 (void)tx_in.ToString();
28}
An input of a transaction.
Definition transaction.h:62
Minimal stream for reading from an existing byte array by std::span.
Definition streams.h:83
static int64_t GetTransactionInputWeight(const CTxIn &txin)
Definition validation.h:140
static size_t RecursiveDynamicUsage(const CScript &script)
#define FUZZ_TARGET(...)
Definition fuzz.h:35
int64_t GetVirtualTransactionInputSize(const CTxIn &txin, int64_t nSigOpCost, unsigned int bytes_per_sigop)
Definition policy.cpp:391
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:73