BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Public Member Functions | Public Attributes | List of all members
COutput Class Reference

#include <wallet.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
 
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 511 of file wallet.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 537 of file wallet.h.

Member Function Documentation

◆ GetInputCoin()

CInputCoin COutput::GetInputCoin ( ) const
inline

Definition at line 549 of file wallet.h.

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 535 of file wallet.h.

◆ fSolvable

bool COutput::fSolvable

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

Definition at line 525 of file wallet.h.

◆ fSpendable

bool COutput::fSpendable

Whether we have the private keys to spend this output.

Definition at line 522 of file wallet.h.

◆ i

int COutput::i

Definition at line 515 of file wallet.h.

◆ nDepth

int COutput::nDepth

Definition at line 516 of file wallet.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 519 of file wallet.h.

◆ tx

const CWalletTx* COutput::tx

Definition at line 514 of file wallet.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 528 of file wallet.h.


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