Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
COutput Class Reference

#include <spend.h>

Collaboration diagram for COutput:
[legend]

Public Member Functions

 COutput (const CWalletTx *txIn, int iIn, int nDepthIn, bool fSpendableIn, bool fSolvableIn, bool fSafeIn, bool use_max_sig_in=false)
 
std::string ToString () const
 
CInputCoin GetInputCoin () const
 

Public Attributes

const CWalletTxtx
 
int i
 Index in tx->vout. More...
 
int nDepth
 Depth in block chain. More...
 
int nInputBytes
 Pre-computed estimated size of this output as a fully-signed input in a transaction. More...
 
bool fSpendable
 Whether we have the private keys to spend this output. More...
 
bool fSolvable
 Whether we know how to spend this output, ignoring the lack of keys. More...
 
bool use_max_sig
 Whether to use the maximum sized, 72 byte signature when calculating the size of the input spend. More...
 
bool fSafe
 Whether this output is considered safe to spend. More...
 

Detailed Description

Definition at line 12 of file spend.h.

Constructor & Destructor Documentation

◆ COutput()

COutput::COutput ( const CWalletTx txIn,
int  iIn,
int  nDepthIn,
bool  fSpendableIn,
bool  fSolvableIn,
bool  fSafeIn,
bool  use_max_sig_in = false 
)
inline

Definition at line 46 of file spend.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetInputCoin()

CInputCoin COutput::GetInputCoin ( ) const
inline

Definition at line 58 of file spend.h.

Here is the caller graph for this function:

◆ ToString()

std::string COutput::ToString ( ) const

Definition at line 24 of file spend.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ fSafe

bool COutput::fSafe

Whether this output is considered safe to spend.

Unconfirmed transactions from outside keys and unconfirmed replacement transactions are considered unsafe and will not be used to fund new spending transactions.

Definition at line 44 of file spend.h.

◆ fSolvable

bool COutput::fSolvable

Whether we know how to spend this output, ignoring the lack of keys.

Definition at line 34 of file spend.h.

◆ fSpendable

bool COutput::fSpendable

Whether we have the private keys to spend this output.

Definition at line 31 of file spend.h.

◆ i

int COutput::i

Index in tx->vout.

Definition at line 18 of file spend.h.

◆ nDepth

int COutput::nDepth

Depth in block chain.

If > 0: the tx is on chain and has this many confirmations. If = 0: the tx is waiting confirmation. If < 0: a conflicting tx is on chain and has this many confirmations.

Definition at line 25 of file spend.h.

◆ nInputBytes

int COutput::nInputBytes

Pre-computed estimated size of this output as a fully-signed input in a transaction.

Can be -1 if it could not be calculated

Definition at line 28 of file spend.h.

◆ tx

const CWalletTx* COutput::tx

Definition at line 15 of file spend.h.

◆ use_max_sig

bool COutput::use_max_sig

Whether to use the maximum sized, 72 byte signature when calculating the size of the input spend.

This should only be set when watch-only outputs are allowed

Definition at line 37 of file spend.h.


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