Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <cachemultimap.h>
#include <governance/governance-exceptions.h>
#include <governance/governance-vote.h>
#include <governance/governance-votedb.h>
#include <key.h>
#include <net.h>
#include <sync.h>
#include <util.h>
#include <utilstrencodings.h>
#include <bls/bls.h>
#include <univalue.h>
Go to the source code of this file.
Classes | |
struct | vote_instance_t |
struct | vote_rec_t |
class | CGovernanceObject |
Governance Object. More... | |
Typedefs | |
typedef std::pair< CGovernanceVote, int64_t > | vote_time_pair_t |
typedef std::map< int, vote_instance_t > | vote_instance_m_t |
typedef vote_instance_m_t::iterator | vote_instance_m_it |
typedef vote_instance_m_t::const_iterator | vote_instance_m_cit |
Functions | |
bool | operator< (const vote_time_pair_t &p1, const vote_time_pair_t &p2) |
Variables | |
static const int | MIN_GOVERNANCE_PEER_PROTO_VERSION = 70213 |
static const int | GOVERNANCE_FILTER_PROTO_VERSION = 70206 |
static const int | GOVERNANCE_POSE_BANNED_VOTES_VERSION = 70215 |
static const double | GOVERNANCE_FILTER_FP_RATE = 0.001 |
static const int | GOVERNANCE_OBJECT_UNKNOWN = 0 |
static const int | GOVERNANCE_OBJECT_PROPOSAL = 1 |
static const int | GOVERNANCE_OBJECT_TRIGGER = 2 |
static const CAmount | GOVERNANCE_PROPOSAL_FEE_TX = (5.0 * COIN) |
static const int64_t | GOVERNANCE_FEE_CONFIRMATIONS = 6 |
static const int64_t | GOVERNANCE_MIN_RELAY_FEE_CONFIRMATIONS = 1 |
static const int64_t | GOVERNANCE_UPDATE_MIN = 60 * 60 |
static const int64_t | GOVERNANCE_DELETION_DELAY = 10 * 60 |
static const int64_t | GOVERNANCE_ORPHAN_EXPIRATION_TIME = 10 * 60 |
static const int | SEEN_OBJECT_IS_VALID = 0 |
static const int | SEEN_OBJECT_ERROR_INVALID = 1 |
static const int | SEEN_OBJECT_EXECUTED = 3 |
static const int | SEEN_OBJECT_UNKNOWN = 4 |
Typedef Documentation
◆ vote_instance_m_cit
typedef vote_instance_m_t::const_iterator vote_instance_m_cit |
Definition at line 88 of file governance-object.h.
◆ vote_instance_m_it
typedef vote_instance_m_t::iterator vote_instance_m_it |
Definition at line 86 of file governance-object.h.
◆ vote_instance_m_t
typedef std::map<int, vote_instance_t> vote_instance_m_t |
Definition at line 84 of file governance-object.h.
◆ vote_time_pair_t
typedef std::pair<CGovernanceVote, int64_t> vote_time_pair_t |
Definition at line 50 of file governance-object.h.
Function Documentation
◆ operator<()
|
inline |
Definition at line 52 of file governance-object.h.
Referenced by CCoinControlWidgetItem::operator<().
Variable Documentation
◆ GOVERNANCE_DELETION_DELAY
|
static |
Definition at line 41 of file governance-object.h.
Referenced by CGovernanceManager::UpdateCachesAndClean().
◆ GOVERNANCE_FEE_CONFIRMATIONS
|
static |
Definition at line 38 of file governance-object.h.
Referenced by CGovernanceObject::IsCollateralValid().
◆ GOVERNANCE_FILTER_FP_RATE
|
static |
Definition at line 30 of file governance-object.h.
Referenced by CGovernanceManager::RequestGovernanceObject().
◆ GOVERNANCE_FILTER_PROTO_VERSION
|
static |
Definition at line 27 of file governance-object.h.
Referenced by CGovernanceManager::ProcessMessage(), CGovernanceManager::RequestGovernanceObject(), and CMasternodeSync::SendGovernanceSyncRequest().
◆ GOVERNANCE_MIN_RELAY_FEE_CONFIRMATIONS
|
static |
Definition at line 39 of file governance-object.h.
Referenced by CGovernanceObject::IsCollateralValid().
◆ GOVERNANCE_OBJECT_PROPOSAL
|
static |
Definition at line 33 of file governance-object.h.
Referenced by CGovernanceObject::GetMinCollateralFee(), gobject_check(), gobject_submit(), gobject_vote_conf(), CGovernanceObject::IsValidLocally(), ListObjects(), CGovernanceObject::ProcessVote(), CGovernanceObject::RemoveInvalidVotes(), CGovernanceManager::SyncSingleObjVotes(), CGovernanceManager::ToJson(), CGovernanceManager::ToString(), CGovernanceManager::UpdateCachesAndClean(), and voteraw().
◆ GOVERNANCE_OBJECT_TRIGGER
|
static |
Definition at line 34 of file governance-object.h.
Referenced by CGovernanceManager::AddCachedTriggers(), CGovernanceManager::AddGovernanceObject(), CGovernanceManager::CheckPostponedObjects(), CGovernanceTriggerManager::CleanAndRemove(), CSuperblock::CSuperblock(), CGovernanceObject::GetMinCollateralFee(), gobject_submit(), CGovernanceObject::IsValidLocally(), ListObjects(), CGovernanceManager::MasternodeRateCheck(), CGovernanceManager::MasternodeRateUpdate(), CGovernanceManager::RequestGovernanceObjectVotes(), CGovernanceManager::ToJson(), and CGovernanceManager::ToString().
◆ GOVERNANCE_OBJECT_UNKNOWN
|
static |
Definition at line 32 of file governance-object.h.
◆ GOVERNANCE_ORPHAN_EXPIRATION_TIME
|
static |
Definition at line 42 of file governance-object.h.
Referenced by CGovernanceManager::ProcessVote().
◆ GOVERNANCE_POSE_BANNED_VOTES_VERSION
|
static |
Definition at line 28 of file governance-object.h.
Referenced by CGovernanceVote::Relay().
◆ GOVERNANCE_PROPOSAL_FEE_TX
Definition at line 36 of file governance-object.h.
Referenced by getgovernanceinfo(), and CGovernanceObject::GetMinCollateralFee().
◆ GOVERNANCE_UPDATE_MIN
|
static |
Definition at line 40 of file governance-object.h.
Referenced by CGovernanceObject::ProcessVote().
◆ MIN_GOVERNANCE_PEER_PROTO_VERSION
|
static |
Definition at line 26 of file governance-object.h.
Referenced by CGovernanceManager::ProcessMessage(), CMasternodeSync::ProcessTick(), CGovernanceVote::Relay(), CGovernanceObject::Relay(), and CGovernanceManager::RequestGovernanceObjectVotes().
◆ SEEN_OBJECT_ERROR_INVALID
|
static |
Definition at line 46 of file governance-object.h.
Referenced by CGovernanceTriggerManager::CleanAndRemove().
◆ SEEN_OBJECT_EXECUTED
|
static |
Definition at line 47 of file governance-object.h.
Referenced by CGovernanceTriggerManager::CleanAndRemove(), CSuperblock::IsExpired(), and CSuperblock::SetExecuted().
◆ SEEN_OBJECT_IS_VALID
|
static |
Definition at line 45 of file governance-object.h.
Referenced by CGovernanceTriggerManager::AddNewTrigger(), CGovernanceTriggerManager::CleanAndRemove(), and CSuperblock::IsExpired().
◆ SEEN_OBJECT_UNKNOWN
|
static |
Definition at line 48 of file governance-object.h.
Referenced by CGovernanceTriggerManager::CleanAndRemove().