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

#include <spend.h>

Collaboration diagram for wallet::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
 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 17 of file spend.h.

Constructor & Destructor Documentation

◆ COutput()

wallet::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 wallet::COutput::GetInputCoin ( ) const
inline

Definition at line 63 of file spend.h.

◆ ToString()

std::string wallet::COutput::ToString ( ) const

Definition at line 32 of file spend.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ fSafe

bool wallet::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 49 of file spend.h.

◆ fSolvable

bool wallet::COutput::fSolvable

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

Definition at line 39 of file spend.h.

◆ fSpendable

bool wallet::COutput::fSpendable

Whether we have the private keys to spend this output.

Definition at line 36 of file spend.h.

◆ i

int wallet::COutput::i

Index in tx->vout.

Definition at line 23 of file spend.h.

◆ nDepth

int wallet::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 30 of file spend.h.

◆ nInputBytes

int wallet::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 33 of file spend.h.

◆ tx

const CWalletTx* wallet::COutput::tx

Definition at line 20 of file spend.h.

◆ use_max_sig

bool wallet::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: