Bitcoin ABC 0.30.3
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 CWallet &wallet, const CWalletTx &wtx, 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
 
int nDepth
 
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 19 of file spend.h.

Constructor & Destructor Documentation

◆ COutput()

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

Definition at line 51 of file spend.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetInputCoin()

CInputCoin COutput::GetInputCoin ( ) const
inline

Definition at line 71 of file spend.h.

◆ ToString()

std::string COutput::ToString ( ) const

Definition at line 31 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 are considered unsafe and will not be used to fund new spending transactions.

Definition at line 49 of file spend.h.

◆ fSolvable

bool COutput::fSolvable

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

Definition at line 35 of file spend.h.

◆ fSpendable

bool COutput::fSpendable

Whether we have the private keys to spend this output.

Definition at line 32 of file spend.h.

◆ i

int COutput::i

Definition at line 22 of file spend.h.

◆ nDepth

int COutput::nDepth

Definition at line 23 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 29 of file spend.h.

◆ tx

const CWalletTx* COutput::tx

Definition at line 21 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 42 of file spend.h.


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