Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Public Member Functions | Public Attributes | List of all members
PrecomputedTransactionData Struct Reference

#include <interpreter.h>

Collaboration diagram for PrecomputedTransactionData:
[legend]

Public Member Functions

 PrecomputedTransactionData ()=default
 
template<class T >
void Init (const T &tx, std::vector< CTxOut > &&spent_outputs)
 
template<class T >
 PrecomputedTransactionData (const T &tx)
 

Public Attributes

uint256 m_prevouts_single_hash
 
uint256 m_sequences_single_hash
 
uint256 m_outputs_single_hash
 
uint256 m_spent_amounts_single_hash
 
uint256 m_spent_scripts_single_hash
 
bool m_bip341_taproot_ready = false
 Whether the 5 fields above are initialized. More...
 
uint256 hashPrevouts
 
uint256 hashSequence
 
uint256 hashOutputs
 
bool m_bip143_segwit_ready = false
 Whether the 3 fields above are initialized. More...
 
std::vector< CTxOutm_spent_outputs
 
bool m_spent_outputs_ready = false
 Whether m_spent_outputs is initialized. More...
 

Detailed Description

Definition at line 146 of file interpreter.h.

Constructor & Destructor Documentation

PrecomputedTransactionData::PrecomputedTransactionData ( )
default
template<class T >
PrecomputedTransactionData::PrecomputedTransactionData ( const T &  tx)
explicit

Definition at line 1475 of file interpreter.cpp.

Here is the call graph for this function:

Member Function Documentation

template<class T >
template void PrecomputedTransactionData::Init ( const T &  tx,
std::vector< CTxOut > &&  spent_outputs 
)

Definition at line 1423 of file interpreter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

uint256 PrecomputedTransactionData::hashOutputs

Definition at line 159 of file interpreter.h.

uint256 PrecomputedTransactionData::hashPrevouts

Definition at line 159 of file interpreter.h.

uint256 PrecomputedTransactionData::hashSequence

Definition at line 159 of file interpreter.h.

bool PrecomputedTransactionData::m_bip143_segwit_ready = false

Whether the 3 fields above are initialized.

Definition at line 161 of file interpreter.h.

bool PrecomputedTransactionData::m_bip341_taproot_ready = false

Whether the 5 fields above are initialized.

Definition at line 156 of file interpreter.h.

uint256 PrecomputedTransactionData::m_outputs_single_hash

Definition at line 152 of file interpreter.h.

uint256 PrecomputedTransactionData::m_prevouts_single_hash

Definition at line 150 of file interpreter.h.

uint256 PrecomputedTransactionData::m_sequences_single_hash

Definition at line 151 of file interpreter.h.

uint256 PrecomputedTransactionData::m_spent_amounts_single_hash

Definition at line 153 of file interpreter.h.

std::vector<CTxOut> PrecomputedTransactionData::m_spent_outputs

Definition at line 163 of file interpreter.h.

bool PrecomputedTransactionData::m_spent_outputs_ready = false

Whether m_spent_outputs is initialized.

Definition at line 165 of file interpreter.h.

uint256 PrecomputedTransactionData::m_spent_scripts_single_hash

Definition at line 154 of file interpreter.h.


The documentation for this struct was generated from the following files: