Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
governance-votedb.cpp
Go to the documentation of this file.
39 bool CGovernanceObjectVoteFile::SerializeVoteToStream(const uint256& nHash, CDataStream& ss) const
72 std::set<uint256> CGovernanceObjectVoteFile::RemoveInvalidVotes(const COutPoint& outpointMasternode, bool fProposal)
bool HasVote(const uint256 &nHash) const
Return true if the vote with this hash is currently cached in memory.
Definition: governance-votedb.cpp:34
void RemoveOldVotes(const CGovernanceVote &vote)
Definition: governance-votedb.cpp:94
Definition: governance-vote.h:27
Definition: governance-vote.h:54
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
const COutPoint & GetMasternodeOutpoint() const
Definition: governance-vote.h:105
vote_l_t::const_iterator vote_l_cit
Definition: governance-votedb.h:31
void RemoveVotesFromMasternode(const COutPoint &outpointMasternode)
Definition: governance-votedb.cpp:58
An outpoint - a combination of a transaction hash and an index n into its vout.
Definition: transaction.h:26
void AddVote(const CGovernanceVote &vote)
Add a vote to the file.
Definition: governance-votedb.cpp:22
CGovernanceObjectVoteFile()
Definition: governance-votedb.cpp:7
std::vector< CGovernanceVote > GetVotes() const
Definition: governance-votedb.cpp:49
Represents the collection of votes associated with a given CGovernanceObject Recently received votes ...
Definition: governance-votedb.h:24
std::set< uint256 > RemoveInvalidVotes(const COutPoint &outpointMasternode, bool fProposal)
Definition: governance-votedb.cpp:72
bool SerializeVoteToStream(const uint256 &nHash, CDataStream &ss) const
Retrieve a vote cached in memory.
Definition: governance-votedb.cpp:39
vote_m_t::const_iterator vote_m_cit
Definition: governance-votedb.h:37