Dash Core  0.12.2.1
P2P Digital Currency
misc.cpp File Reference
#include "base58.h"
#include "clientversion.h"
#include "init.h"
#include "validation.h"
#include "net.h"
#include "netbase.h"
#include "rpc/server.h"
#include "timedata.h"
#include "txmempool.h"
#include "util.h"
#include "spork.h"
#include "utilstrencodings.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp>
#include <boost/algorithm/string.hpp>
#include <univalue.h>

Go to the source code of this file.

Functions

UniValue getinfo (const UniValue &params, bool fHelp)
 
UniValue debug (const UniValue &params, bool fHelp)
 
UniValue mnsync (const UniValue &params, bool fHelp)
 
UniValue spork (const UniValue &params, bool fHelp)
 
UniValue validateaddress (const UniValue &params, bool fHelp)
 
CScript _createmultisig_redeemScript (const UniValue &params)
 
UniValue createmultisig (const UniValue &params, bool fHelp)
 
UniValue verifymessage (const UniValue &params, bool fHelp)
 
UniValue setmocktime (const UniValue &params, bool fHelp)
 
bool getAddressFromIndex (const int &type, const uint160 &hash, std::string &address)
 
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 UniValue &params, bool fHelp)
 
UniValue getaddressutxos (const UniValue &params, bool fHelp)
 
UniValue getaddressdeltas (const UniValue &params, bool fHelp)
 
UniValue getaddressbalance (const UniValue &params, bool fHelp)
 
UniValue getaddresstxids (const UniValue &params, bool fHelp)
 
UniValue getspentinfo (const UniValue &params, bool fHelp)
 

Function Documentation

◆ _createmultisig_redeemScript()

CScript _createmultisig_redeemScript ( const UniValue params)

Used by addmultisigaddress / createmultisig:

Definition at line 340 of file misc.cpp.

Referenced by addmultisigaddress(), and createmultisig().

◆ createmultisig()

UniValue createmultisig ( const UniValue params,
bool  fHelp 
)

Definition at line 401 of file misc.cpp.

Referenced by listtransactions.ListTransactionsTest::run_test().

◆ debug()

UniValue debug ( const UniValue params,
bool  fHelp 
)

◆ getaddressbalance()

UniValue getaddressbalance ( const UniValue params,
bool  fHelp 
)

Definition at line 809 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getaddressdeltas()

UniValue getaddressdeltas ( const UniValue params,
bool  fHelp 
)

Definition at line 721 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ 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 525 of file misc.cpp.

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

◆ getaddressmempool()

UniValue getaddressmempool ( const UniValue params,
bool  fHelp 
)

Definition at line 583 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getaddresstxids()

UniValue getaddresstxids ( const UniValue params,
bool  fHelp 
)

Definition at line 865 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getaddressutxos()

UniValue getaddressutxos ( const UniValue params,
bool  fHelp 
)

Definition at line 654 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getinfo()

UniValue getinfo ( const UniValue params,
bool  fHelp 
)
Note
Do not add or change anything in the information returned by this method. getinfo exists for backwards-compatibility only. It combines information from wildly different sources in the program, which is a mess, and is thus planned to be deprecated eventually.

Based on the source of the information, new information should be added to:

  • getblockchaininfo,
  • getnetworkinfo or
  • getwalletinfo

Or alternatively, create a specific query method for the information.

Definition at line 47 of file misc.cpp.

Referenced by p2p-versionbits-warning.VersionBitsWarningTest::run_test().

◆ getspentinfo()

UniValue getspentinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 948 of file misc.cpp.

Referenced by spentindex.SpentIndexTest::run_test().

◆ heightSort()

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

Definition at line 573 of file misc.cpp.

Referenced by getaddressutxos().

◆ mnsync()

UniValue mnsync ( const UniValue params,
bool  fHelp 
)

Definition at line 143 of file misc.cpp.

◆ setmocktime()

◆ spork()

UniValue spork ( const UniValue params,
bool  fHelp 
)

◆ timestampSort()

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

Definition at line 578 of file misc.cpp.

Referenced by getaddressmempool().

◆ validateaddress()

◆ verifymessage()

UniValue verifymessage ( const UniValue params,
bool  fHelp 
)

Definition at line 444 of file misc.cpp.