![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <coincontrol.h>
Public Member Functions | |
| void | SetTxOut (const CTxOut &txout) |
| Set the previous output for this input. | |
| CTxOut | GetTxOut () const |
| Retrieve the previous output for this input. | |
| bool | HasTxOut () const |
| Return whether the previous output is set for this input. | |
| void | SetInputWeight (int64_t weight) |
| Set the weight for this input. | |
| std::optional< int64_t > | GetInputWeight () const |
| Retrieve the input weight for this input. | |
| void | SetSequence (uint32_t sequence) |
| Set the sequence for this input. | |
| std::optional< uint32_t > | GetSequence () const |
| Retrieve the sequence for this input. | |
| void | SetScriptSig (const CScript &script) |
| Set the scriptSig for this input. | |
| void | SetScriptWitness (const CScriptWitness &script_wit) |
| Set the scriptWitness for this input. | |
| bool | HasScripts () const |
| Return whether either the scriptSig or scriptWitness are set for this input. | |
| std::pair< std::optional< CScript >, std::optional< CScriptWitness > > | GetScripts () const |
| Retrieve both the scriptSig and the scriptWitness. | |
| void | SetPosition (unsigned int pos) |
| Store the position of this input. | |
| std::optional< unsigned int > | GetPosition () const |
| Retrieve the position of this input. | |
Private Attributes | |
| std::optional< CTxOut > | m_txout |
| The previous output being spent by this input. | |
| std::optional< int64_t > | m_weight |
| The input weight for spending this input. | |
| std::optional< uint32_t > | m_sequence |
| The sequence number for this input. | |
| std::optional< CScript > | m_script_sig |
| The scriptSig for this input. | |
| std::optional< CScriptWitness > | m_script_witness |
| The scriptWitness for this input. | |
| std::optional< unsigned int > | m_pos |
| The position in the inputs vector for this input. | |
Definition at line 30 of file coincontrol.h.
| std::optional< int64_t > wallet::PreselectedInput::GetInputWeight | ( | ) | const |
Retrieve the input weight for this input.
Definition at line 111 of file coincontrol.cpp.
Retrieve the position of this input.
Definition at line 151 of file coincontrol.cpp.
| std::pair< std::optional< CScript >, std::optional< CScriptWitness > > wallet::PreselectedInput::GetScripts | ( | ) | const |
Retrieve both the scriptSig and the scriptWitness.
Definition at line 141 of file coincontrol.cpp.
| std::optional< uint32_t > wallet::PreselectedInput::GetSequence | ( | ) | const |
Retrieve the sequence for this input.
Definition at line 121 of file coincontrol.cpp.
| CTxOut wallet::PreselectedInput::GetTxOut | ( | ) | const |
Retrieve the previous output for this input.
Definition at line 95 of file coincontrol.cpp.
| bool wallet::PreselectedInput::HasScripts | ( | ) | const |
Return whether either the scriptSig or scriptWitness are set for this input.
Definition at line 136 of file coincontrol.cpp.
| bool wallet::PreselectedInput::HasTxOut | ( | ) | const |
Return whether the previous output is set for this input.
Definition at line 101 of file coincontrol.cpp.
Set the weight for this input.
Definition at line 106 of file coincontrol.cpp.
Store the position of this input.
Definition at line 146 of file coincontrol.cpp.
Set the scriptSig for this input.
Definition at line 126 of file coincontrol.cpp.
| void wallet::PreselectedInput::SetScriptWitness | ( | const CScriptWitness & | script_wit | ) |
Set the scriptWitness for this input.
Definition at line 131 of file coincontrol.cpp.
Set the sequence for this input.
Definition at line 116 of file coincontrol.cpp.
Set the previous output for this input.
Only necessary if the input is expected to be an external input.
Definition at line 90 of file coincontrol.cpp.
The position in the inputs vector for this input.
Definition at line 44 of file coincontrol.h.
|
private |
The scriptSig for this input.
Definition at line 40 of file coincontrol.h.
|
private |
The scriptWitness for this input.
Definition at line 42 of file coincontrol.h.
|
private |
The sequence number for this input.
Definition at line 38 of file coincontrol.h.
|
private |
The previous output being spent by this input.
Definition at line 34 of file coincontrol.h.
|
private |
The input weight for spending this input.
Definition at line 36 of file coincontrol.h.