PIVX Core  5.6.99
P2P Digital Currency
Public Types | Public Member Functions | Private Attributes | List of all members
CBudgetVote Class Reference

#include <budgetvote.h>

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

Public Types

enum  VoteDirection : uint32_t { VOTE_ABSTAIN = 0 , VOTE_YES = 1 , VOTE_NO = 2 }
 

Public Member Functions

 CBudgetVote ()
 
 CBudgetVote (const CTxIn &vin, const uint256 &nProposalHash, VoteDirection nVoteIn)
 
void Relay () const
 
std::string GetVoteString () const
 
uint256 GetHash () const
 
uint256 GetSignatureHash () const override
 
std::string GetStrMessage () const override
 
CTxIn GetVin () const
 
UniValue ToJSON () const
 
VoteDirection GetDirection () const
 
uint256 GetProposalHash () const
 
int64_t GetTime () const
 
bool IsSynced () const
 
bool IsValid () const
 
void SetSynced (bool _fSynced)
 
void SetTime (const int64_t &_nTime)
 
void SetValid (bool _fValid)
 
 SERIALIZE_METHODS (CBudgetVote, obj)
 
- Public Member Functions inherited from CSignedMessage
 CSignedMessage ()
 
virtual ~CSignedMessage ()
 
bool Sign (const CKey &key, const CKeyID &keyID)
 CSignedMessage Class Functions inherited by network signed-messages. More...
 
bool Sign (const std::string strSignKey)
 
bool CheckSignature (const CKeyID &keyID) const
 
void SetVchSig (const std::vector< unsigned char > &vchSigIn)
 
std::vector< unsigned char > GetVchSig () const
 
std::string GetSignatureBase64 () const
 
bool Sign (const CBLSSecretKey &sk)
 
bool CheckSignature (const CBLSPublicKey &pk) const
 

Private Attributes

bool fValid
 
bool fSynced
 
uint256 nProposalHash
 
VoteDirection nVote
 
int64_t nTime
 
CTxIn vin
 

Additional Inherited Members

- Public Attributes inherited from CSignedMessage
int nMessVersion
 
- Protected Attributes inherited from CSignedMessage
std::vector< unsigned char > vchSig
 

Detailed Description

Definition at line 18 of file budgetvote.h.

Member Enumeration Documentation

◆ VoteDirection

enum CBudgetVote::VoteDirection : uint32_t
Enumerator
VOTE_ABSTAIN 
VOTE_YES 
VOTE_NO 

Definition at line 21 of file budgetvote.h.

Constructor & Destructor Documentation

◆ CBudgetVote() [1/2]

CBudgetVote::CBudgetVote ( )

Definition at line 11 of file budgetvote.cpp.

◆ CBudgetVote() [2/2]

CBudgetVote::CBudgetVote ( const CTxIn vin,
const uint256 nProposalHash,
VoteDirection  nVoteIn 
)

Definition at line 21 of file budgetvote.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ GetDirection()

VoteDirection CBudgetVote::GetDirection ( ) const
inline

Definition at line 58 of file budgetvote.h.

Here is the caller graph for this function:

◆ GetHash()

uint256 CBudgetVote::GetHash ( ) const

Definition at line 38 of file budgetvote.cpp.

Here is the caller graph for this function:

◆ GetProposalHash()

uint256 CBudgetVote::GetProposalHash ( ) const
inline

Definition at line 59 of file budgetvote.h.

Here is the caller graph for this function:

◆ GetSignatureHash()

uint256 CBudgetVote::GetSignatureHash ( ) const
inlineoverridevirtual

Implements CSignedMessage.

Definition at line 52 of file budgetvote.h.

Here is the call graph for this function:

◆ GetStrMessage()

std::string CBudgetVote::GetStrMessage ( ) const
overridevirtual

Implements CSignedMessage.

Definition at line 48 of file budgetvote.cpp.

Here is the call graph for this function:

◆ GetTime()

int64_t CBudgetVote::GetTime ( ) const
inline

Definition at line 60 of file budgetvote.h.

Here is the caller graph for this function:

◆ GetVin()

CTxIn CBudgetVote::GetVin ( ) const
inline

Definition at line 54 of file budgetvote.h.

Here is the caller graph for this function:

◆ GetVoteString()

std::string CBudgetVote::GetVoteString ( ) const
inline

Definition at line 41 of file budgetvote.h.

Here is the caller graph for this function:

◆ IsSynced()

bool CBudgetVote::IsSynced ( ) const
inline

Definition at line 61 of file budgetvote.h.

Here is the caller graph for this function:

◆ IsValid()

bool CBudgetVote::IsValid ( ) const
inline

Definition at line 62 of file budgetvote.h.

Here is the caller graph for this function:

◆ Relay()

void CBudgetVote::Relay ( ) const

Definition at line 32 of file budgetvote.cpp.

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

◆ SERIALIZE_METHODS()

CBudgetVote::SERIALIZE_METHODS ( CBudgetVote  ,
obj   
)
inline

Definition at line 68 of file budgetvote.h.

◆ SetSynced()

void CBudgetVote::SetSynced ( bool  _fSynced)
inline

Definition at line 64 of file budgetvote.h.

Here is the caller graph for this function:

◆ SetTime()

void CBudgetVote::SetTime ( const int64_t &  _nTime)
inline

Definition at line 65 of file budgetvote.h.

◆ SetValid()

void CBudgetVote::SetValid ( bool  _fValid)
inline

Definition at line 66 of file budgetvote.h.

Here is the caller graph for this function:

◆ ToJSON()

UniValue CBudgetVote::ToJSON ( ) const

Definition at line 53 of file budgetvote.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ fSynced

bool CBudgetVote::fSynced
private

Definition at line 29 of file budgetvote.h.

◆ fValid

bool CBudgetVote::fValid
private

Definition at line 28 of file budgetvote.h.

◆ nProposalHash

uint256 CBudgetVote::nProposalHash
private

Definition at line 30 of file budgetvote.h.

◆ nTime

int64_t CBudgetVote::nTime
private

Definition at line 32 of file budgetvote.h.

◆ nVote

VoteDirection CBudgetVote::nVote
private

Definition at line 31 of file budgetvote.h.

◆ vin

CTxIn CBudgetVote::vin
private

Definition at line 33 of file budgetvote.h.


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