5#ifndef BITCOIN_CORE_MEMUSAGE_H
6#define BITCOIN_CORE_MEMUSAGE_H
32 for (std::vector<CTxIn>::const_iterator it = tx.
vin.begin();
33 it != tx.
vin.end(); it++) {
36 for (std::vector<CTxOut>::const_iterator it = tx.
vout.begin();
37 it != tx.
vout.end(); it++) {
46 for (std::vector<CTxIn>::const_iterator it = tx.
vin.begin();
47 it != tx.
vin.end(); it++) {
50 for (std::vector<CTxOut>::const_iterator it = tx.
vout.begin();
51 it != tx.
vout.end(); it++) {
A mutable version of CTransaction.
std::vector< CTxOut > vout
An outpoint - a combination of a transaction hash and an index n into its vout.
Serialized script, used inside transaction inputs and outputs.
The basic transaction that is broadcasted on the network and contained in blocks.
const std::vector< CTxOut > vout
const std::vector< CTxIn > vin
An input of a transaction.
An output of a transaction.
Implements a drop-in replacement for std::vector<T> which stores up to N elements directly (without h...
static size_t RecursiveDynamicUsage(const CScript &script)
static size_t DynamicUsage(const int8_t &v)
Dynamic memory usage for built-in types is zero.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...