Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <interpreter.h>
Public Member Functions | |
PrecomputedTransactionData ()=default | |
template<class T > | |
void | Init (const T &tx, std::vector< CTxOut > &&spent_outputs, bool force=false) |
Initialize this PrecomputedTransactionData with transaction data. More... | |
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< CTxOut > | m_spent_outputs |
bool | m_spent_outputs_ready = false |
Whether m_spent_outputs is initialized. More... | |
Definition at line 153 of file interpreter.h.
|
default |
template void PrecomputedTransactionData::Init | ( | const T & | tx, |
std::vector< CTxOut > && | spent_outputs, | ||
bool | force = false |
||
) |
Initialize this PrecomputedTransactionData with transaction data.
[in] | tx | The transaction for which data is being precomputed. |
[in] | spent_outputs | The CTxOuts being spent, one for each tx.vin, in order. |
[in] | force | Whether to precompute data for all optional features, regardless of what is in the inputs (used at signing time, when the inputs aren't filled in yet). |
Definition at line 1398 of file interpreter.cpp.
uint256 PrecomputedTransactionData::hashOutputs |
Definition at line 166 of file interpreter.h.
uint256 PrecomputedTransactionData::hashPrevouts |
Definition at line 166 of file interpreter.h.
uint256 PrecomputedTransactionData::hashSequence |
Definition at line 166 of file interpreter.h.
bool PrecomputedTransactionData::m_bip143_segwit_ready = false |
Whether the 3 fields above are initialized.
Definition at line 168 of file interpreter.h.
bool PrecomputedTransactionData::m_bip341_taproot_ready = false |
Whether the 5 fields above are initialized.
Definition at line 163 of file interpreter.h.
uint256 PrecomputedTransactionData::m_outputs_single_hash |
Definition at line 159 of file interpreter.h.
uint256 PrecomputedTransactionData::m_prevouts_single_hash |
Definition at line 157 of file interpreter.h.
uint256 PrecomputedTransactionData::m_sequences_single_hash |
Definition at line 158 of file interpreter.h.
uint256 PrecomputedTransactionData::m_spent_amounts_single_hash |
Definition at line 160 of file interpreter.h.
std::vector<CTxOut> PrecomputedTransactionData::m_spent_outputs |
Definition at line 170 of file interpreter.h.
bool PrecomputedTransactionData::m_spent_outputs_ready = false |
Whether m_spent_outputs is initialized.
Definition at line 172 of file interpreter.h.
uint256 PrecomputedTransactionData::m_spent_scripts_single_hash |
Definition at line 161 of file interpreter.h.