Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

governance.cpp File Reference
#include <masternode/activemasternode.h>
#include <consensus/validation.h>
#include <core_io.h>
#include <governance/governance.h>
#include <governance/governance-vote.h>
#include <governance/governance-classes.h>
#include <governance/governance-validators.h>
#include <init.h>
#include <txmempool.h>
#include <validation.h>
#include <masternode/masternode-sync.h>
#include <messagesigner.h>
#include <rpc/server.h>
#include <util.h>
#include <utilmoneystr.h>
#include <wallet/rpcwallet.h>
+ Include dependency graph for governance.cpp:

Go to the source code of this file.

Functions

void gobject_count_help ()
 
UniValue gobject_count (const JSONRPCRequest &request)
 
void gobject_deserialize_help ()
 
UniValue gobject_deserialize (const JSONRPCRequest &request)
 
void gobject_check_help ()
 
UniValue gobject_check (const JSONRPCRequest &request)
 
void gobject_submit_help ()
 
UniValue gobject_submit (const JSONRPCRequest &request)
 
void gobject_vote_conf_help ()
 
UniValue gobject_vote_conf (const JSONRPCRequest &request)
 
UniValue VoteWithMasternodes (const std::map< uint256, CKey > &keys, const uint256 &hash, vote_signal_enum_t eVoteSignal, vote_outcome_enum_t eVoteOutcome)
 
UniValue ListObjects (const std::string &strCachedSignal, const std::string &strType, int nStartTime)
 
void gobject_list_help ()
 
UniValue gobject_list (const JSONRPCRequest &request)
 
void gobject_diff_help ()
 
UniValue gobject_diff (const JSONRPCRequest &request)
 
void gobject_get_help ()
 
UniValue gobject_get (const JSONRPCRequest &request)
 
void gobject_getcurrentvotes_help ()
 
UniValue gobject_getcurrentvotes (const JSONRPCRequest &request)
 
void gobject_help ()
 
UniValue gobject (const JSONRPCRequest &request)
 
UniValue voteraw (const JSONRPCRequest &request)
 
UniValue getgovernanceinfo (const JSONRPCRequest &request)
 
UniValue getsuperblockbudget (const JSONRPCRequest &request)
 
void RegisterGovernanceRPCCommands (CRPCTable &t)
 Register governance RPC commands. More...
 

Variables

static const CRPCCommand commands []
 

Function Documentation

◆ getgovernanceinfo()

◆ getsuperblockbudget()

◆ gobject()

◆ gobject_check()

◆ gobject_check_help()

void gobject_check_help ( )

Definition at line 78 of file governance.cpp.

Referenced by gobject_check().

◆ gobject_count()

◆ gobject_count_help()

void gobject_count_help ( )

Definition at line 25 of file governance.cpp.

Referenced by gobject_count().

◆ gobject_deserialize()

UniValue gobject_deserialize ( const JSONRPCRequest request)

◆ gobject_deserialize_help()

void gobject_deserialize_help ( )

Definition at line 52 of file governance.cpp.

Referenced by gobject_deserialize().

◆ gobject_diff()

◆ gobject_diff_help()

void gobject_diff_help ( )

Definition at line 711 of file governance.cpp.

Referenced by gobject_diff().

◆ gobject_get()

◆ gobject_get_help()

void gobject_get_help ( )

Definition at line 744 of file governance.cpp.

Referenced by gobject_get().

◆ gobject_getcurrentvotes()

◆ gobject_getcurrentvotes_help()

void gobject_getcurrentvotes_help ( )

Definition at line 830 of file governance.cpp.

Referenced by gobject_getcurrentvotes().

◆ gobject_help()

void gobject_help ( )

Definition at line 882 of file governance.cpp.

Referenced by gobject().

◆ gobject_list()

◆ gobject_list_help()

void gobject_list_help ( )

Definition at line 678 of file governance.cpp.

Referenced by gobject_list().

◆ gobject_submit()

◆ gobject_submit_help()

void gobject_submit_help ( )

Definition at line 233 of file governance.cpp.

Referenced by gobject_submit().

◆ gobject_vote_conf()

◆ gobject_vote_conf_help()

void gobject_vote_conf_help ( )

Definition at line 342 of file governance.cpp.

Referenced by gobject_vote_conf().

◆ ListObjects()

◆ RegisterGovernanceRPCCommands()

void RegisterGovernanceRPCCommands ( CRPCTable t)

Register governance RPC commands.

Definition at line 1107 of file governance.cpp.

References CRPCTable::appendCommand(), ARRAYLEN, commands, and CRPCCommand::name.

Referenced by RegisterAllCoreRPCCommands().

◆ voteraw()

◆ VoteWithMasternodes()

Variable Documentation

◆ commands

const CRPCCommand commands[]
static
Initial value:
=
{
{ "dash", "getgovernanceinfo", &getgovernanceinfo, {} },
{ "dash", "getsuperblockbudget", &getsuperblockbudget, {"index"} },
{ "dash", "gobject", &gobject, {} },
{ "dash", "voteraw", &voteraw, {"tx_hash","tx_index","gov_hash","signal","outcome","time","sig"} },
}
UniValue gobject(const JSONRPCRequest &request)
Definition: governance.cpp:909
UniValue getsuperblockbudget(const JSONRPCRequest &request)
UniValue voteraw(const JSONRPCRequest &request)
Definition: governance.cpp:964
UniValue getgovernanceinfo(const JSONRPCRequest &request)

Definition at line 1096 of file governance.cpp.

Referenced by RegisterGovernanceRPCCommands().

Released under the MIT license