5#ifndef BITCOIN_CORE_MEMUSAGE_H
6#define BITCOIN_CORE_MEMUSAGE_H
34 for (std::vector<CTxIn>::const_iterator it = tx.
vin.begin(); it != tx.
vin.end(); it++) {
37 for (std::vector<CTxOut>::const_iterator it = tx.
vout.begin(); it != tx.
vout.end(); it++) {
45 for (std::vector<CTxIn>::const_iterator it = tx.
vin.begin(); it != tx.
vin.end(); it++) {
48 for (std::vector<CTxOut>::const_iterator it = tx.
vout.begin(); it != tx.
vout.end(); it++) {
56 for (
const auto& tx : block.
vtx) {
std::vector< CTransactionRef > vtx
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.
CScriptWitness scriptWitness
Only serialized through CTransaction.
An output of a transaction.
static size_t RecursiveDynamicUsage(const CScript &script)
static size_t DynamicUsage(const int8_t &v)
Dynamic memory usage for built-in types is zero.
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
std::vector< uint256 > vHave
A mutable version of CTransaction.
std::vector< CTxOut > vout
std::vector< std::vector< unsigned char > > stack