Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

misc.cpp File Reference
#include <base58.h>
#include <chain.h>
#include <clientversion.h>
#include <core_io.h>
#include <init.h>
#include <httpserver.h>
#include <net.h>
#include <netbase.h>
#include <rpc/blockchain.h>
#include <rpc/server.h>
#include <rpc/util.h>
#include <timedata.h>
#include <txmempool.h>
#include <utilstrencodings.h>
#include <validation.h>
#include <warnings.h>
#include <masternode/masternode-sync.h>
#include <spork.h>
#include <stdint.h>
#include <boost/algorithm/string.hpp>
#include <univalue.h>
+ Include dependency graph for misc.cpp:

Go to the source code of this file.

Functions

UniValue debug (const JSONRPCRequest &request)
 
UniValue mnsync (const JSONRPCRequest &request)
 
UniValue spork (const JSONRPCRequest &request)
 
UniValue validateaddress (const JSONRPCRequest &request)
 
UniValue createmultisig (const JSONRPCRequest &request)
 
UniValue verifymessage (const JSONRPCRequest &request)
 
UniValue signmessagewithprivkey (const JSONRPCRequest &request)
 
UniValue setmocktime (const JSONRPCRequest &request)
 
bool getAddressFromIndex (const int &type, const uint160 &hash, std::string &address)
 
bool getIndexKey (const std::string &str, uint160 &hashBytes, int &type)
 
bool getAddressesFromParams (const UniValue &params, std::vector< std::pair< uint160, int > > &addresses)
 
bool heightSort (std::pair< CAddressUnspentKey, CAddressUnspentValue > a, std::pair< CAddressUnspentKey, CAddressUnspentValue > b)
 
bool timestampSort (std::pair< CMempoolAddressDeltaKey, CMempoolAddressDelta > a, std::pair< CMempoolAddressDeltaKey, CMempoolAddressDelta > b)
 
UniValue getaddressmempool (const JSONRPCRequest &request)
 
UniValue getaddressutxos (const JSONRPCRequest &request)
 
UniValue getaddressdeltas (const JSONRPCRequest &request)
 
UniValue getaddressbalance (const JSONRPCRequest &request)
 
UniValue getaddresstxids (const JSONRPCRequest &request)
 
UniValue getspentinfo (const JSONRPCRequest &request)
 
static UniValue RPCLockedMemoryInfo ()
 
UniValue getmemoryinfo (const JSONRPCRequest &request)
 
uint64_t getCategoryMask (UniValue cats)
 
UniValue logging (const JSONRPCRequest &request)
 
UniValue echo (const JSONRPCRequest &request)
 
static UniValue getinfo_deprecated (const JSONRPCRequest &request)
 
void RegisterMiscRPCCommands (CRPCTable &t)
 Register miscellaneous RPC commands. More...
 

Variables

static const CRPCCommand commands []
 

Function Documentation

◆ createmultisig()

◆ debug()

◆ echo()

UniValue echo ( const JSONRPCRequest request)

Definition at line 1176 of file misc.cpp.

References JSONRPCRequest::fHelp, and JSONRPCRequest::params.

◆ getaddressbalance()

◆ getaddressdeltas()

◆ getAddressesFromParams()

bool getAddressesFromParams ( const UniValue params,
std::vector< std::pair< uint160, int > > &  addresses 
)

◆ getAddressFromIndex()

bool getAddressFromIndex ( const int &  type,
const uint160 hash,
std::string &  address 
)

Definition at line 527 of file misc.cpp.

References EncodeDestination().

Referenced by getaddressdeltas(), getaddressmempool(), and getaddressutxos().

◆ getaddressmempool()

◆ getaddresstxids()

◆ getaddressutxos()

◆ getCategoryMask()

◆ getIndexKey()

bool getIndexKey ( const std::string &  str,
uint160 hashBytes,
int &  type 
)

Definition at line 539 of file misc.cpp.

References DecodeDestination(), and IsValidDestination().

Referenced by getAddressesFromParams().

◆ getinfo_deprecated()

static UniValue getinfo_deprecated ( const JSONRPCRequest request)
static

Definition at line 1189 of file misc.cpp.

References JSONRPCError(), and RPC_METHOD_NOT_FOUND.

◆ getmemoryinfo()

◆ getspentinfo()

◆ heightSort()

bool heightSort ( std::pair< CAddressUnspentKey, CAddressUnspentValue a,
std::pair< CAddressUnspentKey, CAddressUnspentValue b 
)

Definition at line 587 of file misc.cpp.

Referenced by getaddressutxos().

◆ logging()

◆ mnsync()

◆ RegisterMiscRPCCommands()

void RegisterMiscRPCCommands ( CRPCTable t)

Register miscellaneous RPC commands.

Definition at line 1231 of file misc.cpp.

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

Referenced by RegisterAllCoreRPCCommands().

◆ RPCLockedMemoryInfo()

◆ setmocktime()

◆ signmessagewithprivkey()

◆ spork()

◆ timestampSort()

bool timestampSort ( std::pair< CMempoolAddressDeltaKey, CMempoolAddressDelta a,
std::pair< CMempoolAddressDeltaKey, CMempoolAddressDelta b 
)

Definition at line 592 of file misc.cpp.

Referenced by getaddressmempool().

◆ validateaddress()

◆ verifymessage()

Variable Documentation

◆ commands

const CRPCCommand commands[]
static
Initial value:
=
{
{ "control", "debug", &debug, {} },
{ "control", "getmemoryinfo", &getmemoryinfo, {"mode"} },
{ "control", "logging", &logging, {"include", "exclude"}},
{ "util", "validateaddress", &validateaddress, {"address"} },
{ "util", "createmultisig", &createmultisig, {"nrequired","keys"} },
{ "util", "verifymessage", &verifymessage, {"address","signature","message"} },
{ "util", "signmessagewithprivkey", &signmessagewithprivkey, {"privkey","message"} },
{ "blockchain", "getspentinfo", &getspentinfo, {"json"} },
{ "addressindex", "getaddressmempool", &getaddressmempool, {"addresses"} },
{ "addressindex", "getaddressutxos", &getaddressutxos, {"addresses"} },
{ "addressindex", "getaddressdeltas", &getaddressdeltas, {"addresses"} },
{ "addressindex", "getaddresstxids", &getaddresstxids, {"addresses"} },
{ "addressindex", "getaddressbalance", &getaddressbalance, {"addresses"} },
{ "dash", "mnsync", &mnsync, {} },
{ "dash", "spork", &spork, {"arg0","value"} },
{ "hidden", "setmocktime", &setmocktime, {"timestamp"}},
{ "hidden", "echo", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
{ "hidden", "echojson", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
{ "hidden", "getinfo", &getinfo_deprecated, {}},
}
UniValue verifymessage(const JSONRPCRequest &request)
Definition: misc.cpp:402
UniValue getaddressbalance(const JSONRPCRequest &request)
Definition: misc.cpp:823
UniValue debug(const JSONRPCRequest &request)
Definition: misc.cpp:42
UniValue createmultisig(const JSONRPCRequest &request)
Definition: misc.cpp:337
UniValue spork(const JSONRPCRequest &request)
Definition: misc.cpp:165
static UniValue getinfo_deprecated(const JSONRPCRequest &request)
Definition: misc.cpp:1189
UniValue getaddressdeltas(const JSONRPCRequest &request)
Definition: misc.cpp:735
UniValue getaddresstxids(const JSONRPCRequest &request)
Definition: misc.cpp:879
UniValue setmocktime(const JSONRPCRequest &request)
Definition: misc.cpp:500
UniValue validateaddress(const JSONRPCRequest &request)
Definition: misc.cpp:238
UniValue getmemoryinfo(const JSONRPCRequest &request)
Definition: misc.cpp:1041
UniValue getaddressutxos(const JSONRPCRequest &request)
Definition: misc.cpp:668
UniValue signmessagewithprivkey(const JSONRPCRequest &request)
Definition: misc.cpp:458
UniValue mnsync(const JSONRPCRequest &request)
Definition: misc.cpp:82
UniValue getaddressmempool(const JSONRPCRequest &request)
Definition: misc.cpp:597
UniValue logging(const JSONRPCRequest &request)
Definition: misc.cpp:1105
UniValue getspentinfo(const JSONRPCRequest &request)
Definition: misc.cpp:962
UniValue echo(const JSONRPCRequest &request)
Definition: misc.cpp:1176

Definition at line 1201 of file misc.cpp.

Referenced by RegisterMiscRPCCommands().

Released under the MIT license