PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
CFinalizedBudget Class Reference

#include <masternode-budget.h>

Inheritance diagram for CFinalizedBudget:
[legend]
Collaboration diagram for CFinalizedBudget:
[legend]

Public Member Functions

 CFinalizedBudget ()
 
 CFinalizedBudget (const CFinalizedBudget &other)
 
void CleanAndRemove (bool fSignatureCheck)
 
bool AddOrUpdateVote (CFinalizedBudgetVote &vote, std::string &strError)
 
double GetScore ()
 
bool HasMinimumRequiredSupport ()
 
bool IsValid (std::string &strError, bool fCheckCollateral=true)
 
std::string GetName ()
 
std::string GetProposals ()
 
int GetBlockStart ()
 
int GetBlockEnd ()
 
int GetVoteCount ()
 
bool IsTransactionValid (const CTransaction &txNew, int nBlockHeight)
 
bool GetBudgetPaymentByBlock (int64_t nBlockHeight, CTxBudgetPayment &payment)
 
bool GetPayeeAndAmount (int64_t nBlockHeight, CScript &payee, CAmount &nAmount)
 
void AutoCheck ()
 
CAmount GetTotalPayout ()
 
void SubmitVote ()
 
std::string GetStatus ()
 
uint256 GetHash ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 

Public Attributes

bool fValid
 
std::string strBudgetName
 
int nBlockStart
 
std::vector< CTxBudgetPaymentvecBudgetPayments
 
std::map< uint256, CFinalizedBudgetVotemapVotes
 
uint256 nFeeTXHash
 
int64_t nTime
 
 ADD_SERIALIZE_METHODS
 

Private Attributes

RecursiveMutex cs
 
bool fAutoChecked
 

Detailed Description

Definition at line 306 of file masternode-budget.h.

Constructor & Destructor Documentation

◆ CFinalizedBudget() [1/2]

CFinalizedBudget::CFinalizedBudget ( )

Definition at line 1731 of file masternode-budget.cpp.

◆ CFinalizedBudget() [2/2]

CFinalizedBudget::CFinalizedBudget ( const CFinalizedBudget other)

Definition at line 1743 of file masternode-budget.cpp.

Member Function Documentation

◆ AddOrUpdateVote()

bool CFinalizedBudget::AddOrUpdateVote ( CFinalizedBudgetVote vote,
std::string &  strError 
)

Definition at line 1755 of file masternode-budget.cpp.

Here is the call graph for this function:

◆ AutoCheck()

void CFinalizedBudget::AutoCheck ( )

Definition at line 1788 of file masternode-budget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CleanAndRemove()

void CFinalizedBudget::CleanAndRemove ( bool  fSignatureCheck)

Definition at line 1866 of file masternode-budget.cpp.

◆ GetBlockEnd()

int CFinalizedBudget::GetBlockEnd ( )
inline

Definition at line 335 of file masternode-budget.h.

Here is the caller graph for this function:

◆ GetBlockStart()

int CFinalizedBudget::GetBlockStart ( )
inline

Definition at line 334 of file masternode-budget.h.

Here is the caller graph for this function:

◆ GetBudgetPaymentByBlock()

bool CFinalizedBudget::GetBudgetPaymentByBlock ( int64_t  nBlockHeight,
CTxBudgetPayment payment 
)
inline

Definition at line 338 of file masternode-budget.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHash()

uint256 CFinalizedBudget::GetHash ( )
inline

Definition at line 370 of file masternode-budget.h.

Here is the caller graph for this function:

◆ GetName()

std::string CFinalizedBudget::GetName ( )
inline

Definition at line 332 of file masternode-budget.h.

◆ GetPayeeAndAmount()

bool CFinalizedBudget::GetPayeeAndAmount ( int64_t  nBlockHeight,
CScript payee,
CAmount nAmount 
)
inline

Definition at line 348 of file masternode-budget.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetProposals()

std::string CFinalizedBudget::GetProposals ( )

Definition at line 1888 of file masternode-budget.cpp.

Here is the call graph for this function:

◆ GetScore()

double CFinalizedBudget::GetScore ( )

◆ GetStatus()

std::string CFinalizedBudget::GetStatus ( )

Definition at line 1908 of file masternode-budget.cpp.

Here is the call graph for this function:

◆ GetTotalPayout()

CAmount CFinalizedBudget::GetTotalPayout ( )

Definition at line 1877 of file masternode-budget.cpp.

Here is the caller graph for this function:

◆ GetVoteCount()

int CFinalizedBudget::GetVoteCount ( )
inline

Definition at line 336 of file masternode-budget.h.

Here is the caller graph for this function:

◆ HasMinimumRequiredSupport()

bool CFinalizedBudget::HasMinimumRequiredSupport ( )

◆ IsTransactionValid()

bool CFinalizedBudget::IsTransactionValid ( const CTransaction txNew,
int  nBlockHeight 
)

Definition at line 1996 of file masternode-budget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsValid()

bool CFinalizedBudget::IsValid ( std::string &  strError,
bool  fCheckCollateral = true 
)

Definition at line 1943 of file masternode-budget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializationOp()

template<typename Stream , typename Operation >
void CFinalizedBudget::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 385 of file masternode-budget.h.

◆ SubmitVote()

void CFinalizedBudget::SubmitVote ( )

Definition at line 2030 of file masternode-budget.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CFinalizedBudget::ADD_SERIALIZE_METHODS

Definition at line 381 of file masternode-budget.h.

◆ cs

RecursiveMutex CFinalizedBudget::cs
mutableprivate

Definition at line 310 of file masternode-budget.h.

◆ fAutoChecked

bool CFinalizedBudget::fAutoChecked
private

Definition at line 311 of file masternode-budget.h.

◆ fValid

bool CFinalizedBudget::fValid

Definition at line 314 of file masternode-budget.h.

◆ mapVotes

std::map<uint256, CFinalizedBudgetVote> CFinalizedBudget::mapVotes

Definition at line 318 of file masternode-budget.h.

◆ nBlockStart

int CFinalizedBudget::nBlockStart

Definition at line 316 of file masternode-budget.h.

◆ nFeeTXHash

uint256 CFinalizedBudget::nFeeTXHash

Definition at line 319 of file masternode-budget.h.

◆ nTime

int64_t CFinalizedBudget::nTime

Definition at line 320 of file masternode-budget.h.

◆ strBudgetName

std::string CFinalizedBudget::strBudgetName

Definition at line 315 of file masternode-budget.h.

◆ vecBudgetPayments

std::vector<CTxBudgetPayment> CFinalizedBudget::vecBudgetPayments

Definition at line 317 of file masternode-budget.h.


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