Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <rpc/server.h>
#include <chainparams.h>
#include <clientversion.h>
#include <core_io.h>
#include <validation.h>
#include <net.h>
#include <net_processing.h>
#include <netbase.h>
#include <policy/policy.h>
#include <rpc/protocol.h>
#include <sync.h>
#include <timedata.h>
#include <ui_interface.h>
#include <util.h>
#include <utilstrencodings.h>
#include <version.h>
#include <warnings.h>
#include <univalue.h>
Go to the source code of this file.
Functions | |
UniValue | getconnectioncount (const JSONRPCRequest &request) |
UniValue | ping (const JSONRPCRequest &request) |
UniValue | getpeerinfo (const JSONRPCRequest &request) |
UniValue | addnode (const JSONRPCRequest &request) |
UniValue | disconnectnode (const JSONRPCRequest &request) |
UniValue | getaddednodeinfo (const JSONRPCRequest &request) |
UniValue | getnettotals (const JSONRPCRequest &request) |
static UniValue | GetNetworksInfo () |
UniValue | getnetworkinfo (const JSONRPCRequest &request) |
UniValue | setban (const JSONRPCRequest &request) |
UniValue | listbanned (const JSONRPCRequest &request) |
UniValue | clearbanned (const JSONRPCRequest &request) |
UniValue | setnetworkactive (const JSONRPCRequest &request) |
void | RegisterNetRPCCommands (CRPCTable &t) |
Register P2P networking RPC commands. More... | |
Variables | |
static const CRPCCommand | commands [] |
Function Documentation
◆ addnode()
UniValue addnode | ( | const JSONRPCRequest & | request | ) |
Definition at line 202 of file net.cpp.
References JSONRPCRequest::fHelp, g_connman, UniValue::get_str(), HelpExampleCli(), HelpExampleRpc(), UniValue::isNull(), JSONRPCError(), NullUniValue, JSONRPCRequest::params, RPC_CLIENT_NODE_ALREADY_ADDED, RPC_CLIENT_NODE_NOT_ADDED, RPC_CLIENT_P2P_DISABLED, and UniValue::size().
◆ clearbanned()
UniValue clearbanned | ( | const JSONRPCRequest & | request | ) |
Definition at line 615 of file net.cpp.
References JSONRPCRequest::fHelp, g_connman, HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), NullUniValue, JSONRPCRequest::params, RPC_CLIENT_P2P_DISABLED, and UniValue::size().
◆ disconnectnode()
UniValue disconnectnode | ( | const JSONRPCRequest & | request | ) |
Definition at line 249 of file net.cpp.
References JSONRPCRequest::fHelp, g_connman, UniValue::get_int64(), UniValue::get_str(), HelpExampleCli(), HelpExampleRpc(), UniValue::isNull(), UniValue::isStr(), JSONRPCError(), NullUniValue, JSONRPCRequest::params, RPC_CLIENT_NODE_NOT_CONNECTED, RPC_CLIENT_P2P_DISABLED, RPC_INVALID_PARAMS, and UniValue::size().
◆ getaddednodeinfo()
UniValue getaddednodeinfo | ( | const JSONRPCRequest & | request | ) |
Definition at line 292 of file net.cpp.
References JSONRPCRequest::fHelp, g_connman, UniValue::get_str(), HelpExampleCli(), HelpExampleRpc(), UniValue::isNull(), JSONRPCError(), Pair(), JSONRPCRequest::params, UniValue::push_back(), RPC_CLIENT_NODE_NOT_ADDED, RPC_CLIENT_P2P_DISABLED, UniValue::size(), UniValue::VARR, and UniValue::VOBJ.
◆ getconnectioncount()
UniValue getconnectioncount | ( | const JSONRPCRequest & | request | ) |
Definition at line 27 of file net.cpp.
References CConnman::CONNECTIONS_ALL, JSONRPCRequest::fHelp, g_connman, HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), JSONRPCRequest::params, RPC_CLIENT_P2P_DISABLED, and UniValue::size().
◆ getnettotals()
UniValue getnettotals | ( | const JSONRPCRequest & | request | ) |
Definition at line 360 of file net.cpp.
References JSONRPCRequest::fHelp, g_connman, GetTimeMillis(), HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), Pair(), JSONRPCRequest::params, UniValue::push_back(), RPC_CLIENT_P2P_DISABLED, UniValue::size(), and UniValue::VOBJ.
◆ getnetworkinfo()
UniValue getnetworkinfo | ( | const JSONRPCRequest & | request | ) |
Definition at line 426 of file net.cpp.
References CLIENT_VERSION, CConnman::CONNECTIONS_ALL, cs_main, cs_mapLocalHost, CURRENCY_UNIT, JSONRPCRequest::fHelp, fRelayTxes, g_connman, CFeeRate::GetFeePerK(), GetNetworksInfo(), GetTimeOffset(), GetWarnings(), HelpExampleCli(), HelpExampleRpc(), incrementalRelayFee, LOCK, minRelayTxFee, Pair(), JSONRPCRequest::params, PROTOCOL_VERSION, UniValue::push_back(), UniValue::size(), CConnman::SOCKETEVENTS_EPOLL, CConnman::SOCKETEVENTS_POLL, CConnman::SOCKETEVENTS_SELECT, strprintf, strSubVersion, ValueFromAmount(), UniValue::VARR, and UniValue::VOBJ.
◆ GetNetworksInfo()
|
static |
Definition at line 405 of file net.cpp.
References GetNetworkName(), GetProxy(), IsLimited(), IsReachable(), proxyType::IsValid(), NET_INTERNAL, NET_MAX, NET_UNROUTABLE, Pair(), proxyType::proxy, UniValue::push_back(), proxyType::randomize_credentials, CService::ToStringIPPort(), UniValue::VARR, and UniValue::VOBJ.
Referenced by getnetworkinfo().
◆ getpeerinfo()
UniValue getpeerinfo | ( | const JSONRPCRequest & | request | ) |
Definition at line 69 of file net.cpp.
References JSONRPCRequest::fHelp, g_connman, GetNodeStateStats(), HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), CNodeStateStats::nCommonHeight, CNodeStateStats::nMisbehavior, CNodeStateStats::nSyncHeight, Pair(), JSONRPCRequest::params, UniValue::push_back(), RPC_CLIENT_P2P_DISABLED, UniValue::size(), strprintf, UniValue::VARR, CNodeStateStats::vHeightInFlight, and UniValue::VOBJ.
◆ listbanned()
UniValue listbanned | ( | const JSONRPCRequest & | request | ) |
Definition at line 582 of file net.cpp.
References CBanEntry::banReasonToString(), JSONRPCRequest::fHelp, g_connman, HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), CBanEntry::nBanUntil, CBanEntry::nCreateTime, Pair(), JSONRPCRequest::params, UniValue::push_back(), RPC_CLIENT_P2P_DISABLED, UniValue::size(), UniValue::VARR, and UniValue::VOBJ.
◆ ping()
UniValue ping | ( | const JSONRPCRequest & | request | ) |
Definition at line 46 of file net.cpp.
References JSONRPCRequest::fHelp, CNode::fPingQueued, g_connman, HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), NullUniValue, JSONRPCRequest::params, RPC_CLIENT_P2P_DISABLED, and UniValue::size().
◆ RegisterNetRPCCommands()
void RegisterNetRPCCommands | ( | CRPCTable & | t | ) |
Register P2P networking RPC commands.
Definition at line 670 of file net.cpp.
References CRPCTable::appendCommand(), ARRAYLEN, commands, and CRPCCommand::name.
Referenced by RegisterAllCoreRPCCommands().
◆ setban()
UniValue setban | ( | const JSONRPCRequest & | request | ) |
Definition at line 518 of file net.cpp.
References BanReasonManuallyAdded, JSONRPCRequest::fHelp, g_connman, UniValue::get_int64(), UniValue::get_str(), HelpExampleCli(), HelpExampleRpc(), UniValue::isNull(), UniValue::isTrue(), CNetAddr::IsValid(), CSubNet::IsValid(), JSONRPCError(), LookupHost(), LookupSubNet(), NullUniValue, JSONRPCRequest::params, RPC_CLIENT_INVALID_IP_OR_SUBNET, RPC_CLIENT_NODE_ALREADY_ADDED, RPC_CLIENT_P2P_DISABLED, and UniValue::size().
◆ setnetworkactive()
UniValue setnetworkactive | ( | const JSONRPCRequest & | request | ) |
Definition at line 633 of file net.cpp.
References JSONRPCRequest::fHelp, g_connman, UniValue::get_bool(), JSONRPCError(), JSONRPCRequest::params, RPC_CLIENT_P2P_DISABLED, and UniValue::size().
Variable Documentation
◆ commands
|
static |