Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
CTransaction Class Reference

The basic transaction that is broadcasted on the network and contained in blocks. More...

#include <core.h>

Inheritance diagram for CTransaction:
[legend]

Public Member Functions

 CTransaction ()
 
 IMPLEMENT_SERIALIZE (READWRITE(this->nVersion);nVersion=this->nVersion;READWRITE(vin);READWRITE(vout);READWRITE(nLockTime);) void SetNull()
 
bool IsNull () const
 
uint256 GetHash () const
 
bool IsNewerThan (const CTransaction &old) const
 
int64_t GetValueOut () const
 
double ComputePriority (double dPriorityInputs, unsigned int nTxSize=0) const
 
bool IsCoinBase () const
 
std::string ToString () const
 
void print () const
 

Public Attributes

int nVersion
 
std::vector< CTxInvin
 
std::vector< CTxOutvout
 
unsigned int nLockTime
 

Static Public Attributes

static int64_t nMinTxFee = 100000
 Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) More...
 
static int64_t nMinRelayTxFee = 100000
 Fees smaller than this (in satoshi) are considered zero fee (for relaying and mining) More...
 
static const int CURRENT_VERSION =1
 

Friends

bool operator== (const CTransaction &a, const CTransaction &b)
 
bool operator!= (const CTransaction &a, const CTransaction &b)
 

Detailed Description

The basic transaction that is broadcasted on the network and contained in blocks.

A transaction can contain multiple inputs and outputs.

Definition at line 179 of file core.h.

Constructor & Destructor Documentation

CTransaction::CTransaction ( )
inline

Definition at line 190 of file core.h.

Member Function Documentation

double CTransaction::ComputePriority ( double  dPriorityInputs,
unsigned int  nTxSize = 0 
) const

Definition at line 122 of file core.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint256 CTransaction::GetHash ( ) const

Definition at line 76 of file core.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int64_t CTransaction::GetValueOut ( ) const

Definition at line 110 of file core.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CTransaction::IMPLEMENT_SERIALIZE ( READWRITE(this->nVersion);  nVersion = this->nVersionREADWRITE(vin); READWRITE(vout); READWRITE(nLockTime);)
inline

Definition at line 196 of file core.h.

bool CTransaction::IsCoinBase ( ) const
inline

Definition at line 228 of file core.h.

Here is the caller graph for this function:

bool CTransaction::IsNewerThan ( const CTransaction old) const

Definition at line 81 of file core.cpp.

bool CTransaction::IsNull ( ) const
inline

Definition at line 212 of file core.h.

void CTransaction::print ( ) const

Definition at line 157 of file core.cpp.

Here is the call graph for this function:

std::string CTransaction::ToString ( ) const

Definition at line 141 of file core.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

bool operator!= ( const CTransaction a,
const CTransaction b 
)
friend

Definition at line 241 of file core.h.

bool operator== ( const CTransaction a,
const CTransaction b 
)
friend

Definition at line 233 of file core.h.

Member Data Documentation

const int CTransaction::CURRENT_VERSION =1
static

Definition at line 184 of file core.h.

unsigned int CTransaction::nLockTime

Definition at line 188 of file core.h.

int64_t CTransaction::nMinRelayTxFee = 100000
static

Fees smaller than this (in satoshi) are considered zero fee (for relaying and mining)

Definition at line 183 of file core.h.

int64_t CTransaction::nMinTxFee = 100000
static

Fees smaller than this (in satoshi) are considered zero fee (for transaction creation)

Definition at line 182 of file core.h.

int CTransaction::nVersion

Definition at line 185 of file core.h.

std::vector<CTxIn> CTransaction::vin

Definition at line 186 of file core.h.

std::vector<CTxOut> CTransaction::vout

Definition at line 187 of file core.h.


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