PIVX Core  5.6.99
P2P Digital Currency
Functions
masternode.cpp File Reference
#include "activemasternode.h"
#include "db.h"
#include "evo/deterministicmns.h"
#include "key_io.h"
#include "masternode-payments.h"
#include "masternodeconfig.h"
#include "masternodeman.h"
#include "netaddress.h"
#include "netbase.h"
#include "tiertwo/tiertwo_sync_state.h"
#include "rpc/server.h"
#include <univalue.h>
#include <boost/tokenizer.hpp>
Include dependency graph for masternode.cpp:

Go to the source code of this file.

Functions

UniValue mnping (const JSONRPCRequest &request)
 
UniValue initmasternode (const JSONRPCRequest &request)
 
UniValue getcachedblockhashes (const JSONRPCRequest &request)
 
UniValue listmasternodes (const JSONRPCRequest &request)
 
UniValue getmasternodecount (const JSONRPCRequest &request)
 
UniValue masternodecurrent (const JSONRPCRequest &request)
 
bool StartMasternodeEntry (UniValue &statusObjRet, CMasternodeBroadcast &mnbRet, bool &fSuccessRet, const CMasternodeConfig::CMasternodeEntry &mne, std::string &errorMessage, std::string strCommand="")
 
void RelayMNB (CMasternodeBroadcast &mnb, const bool fSuccess, int &successful, int &failed)
 
void RelayMNB (CMasternodeBroadcast &mnb, const bool fSucces)
 
void SerializeMNB (UniValue &statusObjRet, const CMasternodeBroadcast &mnb, const bool fSuccess, int &successful, int &failed)
 
void SerializeMNB (UniValue &statusObjRet, const CMasternodeBroadcast &mnb, const bool fSuccess)
 
UniValue startmasternode (const JSONRPCRequest &request)
 
UniValue createmasternodekey (const JSONRPCRequest &request)
 
UniValue getmasternodeoutputs (const JSONRPCRequest &request)
 
UniValue listmasternodeconf (const JSONRPCRequest &request)
 
UniValue getmasternodestatus (const JSONRPCRequest &request)
 
UniValue getmasternodewinners (const JSONRPCRequest &request)
 
UniValue getmasternodescores (const JSONRPCRequest &request)
 
bool DecodeAddrV1 (CMasternodeBroadcast &mnb, std::string strHexMnb)
 
bool DecodeHexMnb (CMasternodeBroadcast &mnb, std::string strHexMnb)
 
UniValue createmasternodebroadcast (const JSONRPCRequest &request)
 
UniValue decodemasternodebroadcast (const JSONRPCRequest &request)
 
UniValue relaymasternodebroadcast (const JSONRPCRequest &request)
 
void RegisterMasternodeRPCCommands (CRPCTable &tableRPC)
 Register masternode RPC commands. More...
 

Function Documentation

◆ createmasternodebroadcast()

UniValue createmasternodebroadcast ( const JSONRPCRequest request)

Definition at line 914 of file masternode.cpp.

Here is the call graph for this function:

◆ createmasternodekey()

UniValue createmasternodekey ( const JSONRPCRequest request)

Definition at line 546 of file masternode.cpp.

Here is the call graph for this function:

◆ DecodeAddrV1()

bool DecodeAddrV1 ( CMasternodeBroadcast mnb,
std::string  strHexMnb 
)

Definition at line 881 of file masternode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecodeHexMnb()

bool DecodeHexMnb ( CMasternodeBroadcast mnb,
std::string  strHexMnb 
)

Definition at line 894 of file masternode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decodemasternodebroadcast()

UniValue decodemasternodebroadcast ( const JSONRPCRequest request)

Definition at line 1025 of file masternode.cpp.

Here is the call graph for this function:

◆ getcachedblockhashes()

UniValue getcachedblockhashes ( const JSONRPCRequest request)

Definition at line 119 of file masternode.cpp.

Here is the call graph for this function:

◆ getmasternodecount()

UniValue getmasternodecount ( const JSONRPCRequest request)

Definition at line 275 of file masternode.cpp.

Here is the call graph for this function:

◆ getmasternodeoutputs()

UniValue getmasternodeoutputs ( const JSONRPCRequest request)

Definition at line 565 of file masternode.cpp.

Here is the call graph for this function:

◆ getmasternodescores()

UniValue getmasternodescores ( const JSONRPCRequest request)

Definition at line 840 of file masternode.cpp.

Here is the call graph for this function:

◆ getmasternodestatus()

UniValue getmasternodestatus ( const JSONRPCRequest request)
Todo:
: remove when transition to DMN is complete

Definition at line 671 of file masternode.cpp.

Here is the call graph for this function:

◆ getmasternodewinners()

UniValue getmasternodewinners ( const JSONRPCRequest request)

Definition at line 743 of file masternode.cpp.

Here is the call graph for this function:

◆ initmasternode()

UniValue initmasternode ( const JSONRPCRequest request)

Definition at line 74 of file masternode.cpp.

Here is the call graph for this function:

◆ listmasternodeconf()

UniValue listmasternodeconf ( const JSONRPCRequest request)

Definition at line 609 of file masternode.cpp.

Here is the call graph for this function:

◆ listmasternodes()

UniValue listmasternodes ( const JSONRPCRequest request)
Todo:
: update for DMNs
Todo:
: remove when transition to dmn is complete)

Definition at line 161 of file masternode.cpp.

Here is the call graph for this function:

◆ masternodecurrent()

UniValue masternodecurrent ( const JSONRPCRequest request)

Definition at line 315 of file masternode.cpp.

Here is the call graph for this function:

◆ mnping()

UniValue mnping ( const JSONRPCRequest request)

Definition at line 43 of file masternode.cpp.

Here is the call graph for this function:

◆ RegisterMasternodeRPCCommands()

void RegisterMasternodeRPCCommands ( CRPCTable tableRPC)

Register masternode RPC commands.

Definition at line 1142 of file masternode.cpp.

◆ relaymasternodebroadcast()

UniValue relaymasternodebroadcast ( const JSONRPCRequest request)

Definition at line 1089 of file masternode.cpp.

Here is the call graph for this function:

◆ RelayMNB() [1/2]

void RelayMNB ( CMasternodeBroadcast mnb,
const bool  fSucces 
)

Definition at line 386 of file masternode.cpp.

Here is the call graph for this function:

◆ RelayMNB() [2/2]

void RelayMNB ( CMasternodeBroadcast mnb,
const bool  fSuccess,
int &  successful,
int &  failed 
)

Definition at line 375 of file masternode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeMNB() [1/2]

void SerializeMNB ( UniValue statusObjRet,
const CMasternodeBroadcast mnb,
const bool  fSuccess 
)

Definition at line 406 of file masternode.cpp.

Here is the call graph for this function:

◆ SerializeMNB() [2/2]

void SerializeMNB ( UniValue statusObjRet,
const CMasternodeBroadcast mnb,
const bool  fSuccess,
int &  successful,
int &  failed 
)

Definition at line 392 of file masternode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startmasternode()

UniValue startmasternode ( const JSONRPCRequest request)
Todo:
: remove when transition to DMN is complete

Definition at line 412 of file masternode.cpp.

Here is the call graph for this function:

◆ StartMasternodeEntry()

bool StartMasternodeEntry ( UniValue statusObjRet,
CMasternodeBroadcast mnbRet,
bool &  fSuccessRet,
const CMasternodeConfig::CMasternodeEntry mne,
std::string &  errorMessage,
std::string  strCommand = "" 
)

Definition at line 352 of file masternode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: