Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

governance-object.h File Reference
#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>
+ Include dependency graph for governance-object.h:
+ This graph shows which files directly or indirectly include this file:

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_tvote_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<()

bool operator< ( const vote_time_pair_t p1,
const vote_time_pair_t p2 
)
inline

Definition at line 52 of file governance-object.h.

Referenced by CCoinControlWidgetItem::operator<().

Variable Documentation

◆ GOVERNANCE_DELETION_DELAY

const int64_t GOVERNANCE_DELETION_DELAY = 10 * 60
static

Definition at line 41 of file governance-object.h.

Referenced by CGovernanceManager::UpdateCachesAndClean().

◆ GOVERNANCE_FEE_CONFIRMATIONS

const int64_t GOVERNANCE_FEE_CONFIRMATIONS = 6
static

Definition at line 38 of file governance-object.h.

Referenced by CGovernanceObject::IsCollateralValid().

◆ GOVERNANCE_FILTER_FP_RATE

const double GOVERNANCE_FILTER_FP_RATE = 0.001
static

Definition at line 30 of file governance-object.h.

Referenced by CGovernanceManager::RequestGovernanceObject().

◆ GOVERNANCE_FILTER_PROTO_VERSION

const int GOVERNANCE_FILTER_PROTO_VERSION = 70206
static

◆ GOVERNANCE_MIN_RELAY_FEE_CONFIRMATIONS

const int64_t GOVERNANCE_MIN_RELAY_FEE_CONFIRMATIONS = 1
static

Definition at line 39 of file governance-object.h.

Referenced by CGovernanceObject::IsCollateralValid().

◆ GOVERNANCE_OBJECT_PROPOSAL

◆ GOVERNANCE_OBJECT_TRIGGER

◆ GOVERNANCE_OBJECT_UNKNOWN

const int GOVERNANCE_OBJECT_UNKNOWN = 0
static

Definition at line 32 of file governance-object.h.

◆ GOVERNANCE_ORPHAN_EXPIRATION_TIME

const int64_t GOVERNANCE_ORPHAN_EXPIRATION_TIME = 10 * 60
static

Definition at line 42 of file governance-object.h.

Referenced by CGovernanceManager::ProcessVote().

◆ GOVERNANCE_POSE_BANNED_VOTES_VERSION

const int GOVERNANCE_POSE_BANNED_VOTES_VERSION = 70215
static

Definition at line 28 of file governance-object.h.

Referenced by CGovernanceVote::Relay().

◆ GOVERNANCE_PROPOSAL_FEE_TX

const CAmount GOVERNANCE_PROPOSAL_FEE_TX = (5.0 * COIN)
static

◆ GOVERNANCE_UPDATE_MIN

const int64_t GOVERNANCE_UPDATE_MIN = 60 * 60
static

Definition at line 40 of file governance-object.h.

Referenced by CGovernanceObject::ProcessVote().

◆ MIN_GOVERNANCE_PEER_PROTO_VERSION

◆ SEEN_OBJECT_ERROR_INVALID

const int SEEN_OBJECT_ERROR_INVALID = 1
static

Definition at line 46 of file governance-object.h.

Referenced by CGovernanceTriggerManager::CleanAndRemove().

◆ SEEN_OBJECT_EXECUTED

const int SEEN_OBJECT_EXECUTED = 3
static

◆ SEEN_OBJECT_IS_VALID

const int SEEN_OBJECT_IS_VALID = 0
static

◆ SEEN_OBJECT_UNKNOWN

const int SEEN_OBJECT_UNKNOWN = 4
static

Definition at line 48 of file governance-object.h.

Referenced by CGovernanceTriggerManager::CleanAndRemove().

Released under the MIT license