Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CondensingTX Class Reference

#include <fascstate.h>

Collaboration diagram for CondensingTX:
[legend]

Public Member Functions

 CondensingTX (FascState *_state, const std::vector< TransferInfo > &_transfers, const FascTransaction &_transaction, std::set< dev::Address > _deleteAddresses=std::set< dev::Address >())
 
CTransaction createCondensingTX ()
 
std::unordered_map< dev::Address, VincreateVin (const CTransaction &tx)
 
bool reachedVoutLimit ()
 

Private Member Functions

void selectionVin ()
 
void calculatePlusAndMinus ()
 
bool createNewBalances ()
 
std::vector< CTxIncreateVins ()
 
std::vector< CTxOutcreateVout ()
 
bool checkDeleteAddress (dev::Address addr)
 

Private Attributes

std::map< dev::Address, plusAndMinusplusMinusInfo
 
std::map< dev::Address, dev::u256balances
 
std::map< dev::Address, uint32_t > nVouts
 
std::map< dev::Address, Vinvins
 
const std::vector< TransferInfo > & transfers
 
const std::set< dev::AddressdeleteAddresses
 
const FascTransactiontransaction
 
FascStatestate
 
bool voutOverflow = false
 

Detailed Description

Definition at line 159 of file fascstate.h.

Constructor & Destructor Documentation

CondensingTX::CondensingTX ( FascState _state,
const std::vector< TransferInfo > &  _transfers,
const FascTransaction _transaction,
std::set< dev::Address _deleteAddresses = std::set<dev::Address>() 
)
inline

Definition at line 163 of file fascstate.h.

Member Function Documentation

void CondensingTX::calculatePlusAndMinus ( )
private

Definition at line 322 of file fascstate.cpp.

bool CondensingTX::checkDeleteAddress ( dev::Address  addr)
private

Definition at line 387 of file fascstate.cpp.

CTransaction CondensingTX::createCondensingTX ( )

Definition at line 279 of file fascstate.cpp.

Here is the caller graph for this function:

bool CondensingTX::createNewBalances ( )
private

Definition at line 338 of file fascstate.cpp.

Here is the call graph for this function:

std::unordered_map< dev::Address, Vin > CondensingTX::createVin ( const CTransaction tx)

Definition at line 290 of file fascstate.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< CTxIn > CondensingTX::createVins ( )
private

Definition at line 353 of file fascstate.cpp.

Here is the call graph for this function:

std::vector< CTxOut > CondensingTX::createVout ( )
private

Definition at line 362 of file fascstate.cpp.

bool CondensingTX::reachedVoutLimit ( )
inline

Definition at line 169 of file fascstate.h.

Here is the caller graph for this function:

void CondensingTX::selectionVin ( )
private

Definition at line 305 of file fascstate.cpp.

Here is the call graph for this function:

Member Data Documentation

std::map<dev::Address, dev::u256> CondensingTX::balances
private

Definition at line 189 of file fascstate.h.

const std::set<dev::Address> CondensingTX::deleteAddresses
private

Definition at line 199 of file fascstate.h.

std::map<dev::Address, uint32_t> CondensingTX::nVouts
private

Definition at line 191 of file fascstate.h.

std::map<dev::Address, plusAndMinus> CondensingTX::plusMinusInfo
private

Definition at line 187 of file fascstate.h.

FascState* CondensingTX::state
private

Definition at line 203 of file fascstate.h.

const FascTransaction& CondensingTX::transaction
private

Definition at line 201 of file fascstate.h.

const std::vector<TransferInfo>& CondensingTX::transfers
private

Definition at line 195 of file fascstate.h.

std::map<dev::Address, Vin> CondensingTX::vins
private

Definition at line 193 of file fascstate.h.

bool CondensingTX::voutOverflow = false
private

Definition at line 205 of file fascstate.h.


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