PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Functions
masternode.cpp File Reference
#include "activemasternode.h"
#include "wallet/db.h"
#include "init.h"
#include "main.h"
#include "masternode-payments.h"
#include "masternode-sync.h"
#include "masternodeconfig.h"
#include "masternodeman.h"
#include "netbase.h"
#include "rpc/server.h"
#include "utilmoneystr.h"
#include <boost/tokenizer.hpp>
#include <univalue.h>
Include dependency graph for masternode.cpp:

Go to the source code of this file.

Functions

CAmount GetSeeSaw (const CAmount &blockValue, int nMasternodeCount, int nHeight)
 
UniValue masternode (const UniValue &params, bool fHelp)
 
UniValue listmasternodes (const UniValue &params, bool fHelp)
 
UniValue getmasternodecount (const UniValue &params, bool fHelp)
 
UniValue masternodecurrent (const UniValue &params, bool fHelp)
 
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 UniValue &params, bool fHelp)
 
UniValue createmasternode (const UniValue &params, bool fHelp)
 
UniValue createmasternodekey (const UniValue &params, bool fHelp)
 
UniValue getmasternodeoutputs (const UniValue &params, bool fHelp)
 
UniValue listmasternodeconf (const UniValue &params, bool fHelp)
 
UniValue getmasternodestatus (const UniValue &params, bool fHelp)
 
UniValue getmasternodewinners (const UniValue &params, bool fHelp)
 
UniValue getmasternodescores (const UniValue &params, bool fHelp)
 
UniValue getcurrentseesawreward (const UniValue &params, bool fHelp)
 
UniValue getseesawrewardwithheight (const UniValue &params, bool fHelp)
 
UniValue getseesawrewardratio (const UniValue &params, bool fHelp)
 
bool DecodeHexMnb (CMasternodeBroadcast &mnb, std::string strHexMnb)
 
UniValue createmasternodebroadcast (const UniValue &params, bool fHelp)
 
UniValue decodemasternodebroadcast (const UniValue &params, bool fHelp)
 
UniValue relaymasternodebroadcast (const UniValue &params, bool fHelp)
 

Function Documentation

◆ createmasternode()

UniValue createmasternode ( const UniValue params,
bool  fHelp 
)

Definition at line 497 of file masternode.cpp.

Here is the call graph for this function:

◆ createmasternodebroadcast()

UniValue createmasternodebroadcast ( const UniValue params,
bool  fHelp 
)

Definition at line 971 of file masternode.cpp.

Here is the call graph for this function:

◆ createmasternodekey()

UniValue createmasternodekey ( const UniValue params,
bool  fHelp 
)

Definition at line 555 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 954 of file masternode.cpp.

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

◆ decodemasternodebroadcast()

UniValue decodemasternodebroadcast ( const UniValue params,
bool  fHelp 
)

Definition at line 1080 of file masternode.cpp.

Here is the call graph for this function:

◆ getcurrentseesawreward()

UniValue getcurrentseesawreward ( const UniValue params,
bool  fHelp 
)

Definition at line 857 of file masternode.cpp.

Here is the call graph for this function:

◆ getmasternodecount()

UniValue getmasternodecount ( const UniValue params,
bool  fHelp 
)

Definition at line 237 of file masternode.cpp.

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

◆ getmasternodeoutputs()

UniValue getmasternodeoutputs ( const UniValue params,
bool  fHelp 
)

Definition at line 573 of file masternode.cpp.

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

◆ getmasternodescores()

UniValue getmasternodescores ( const UniValue params,
bool  fHelp 
)

Definition at line 810 of file masternode.cpp.

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

◆ getmasternodestatus()

UniValue getmasternodestatus ( const UniValue params,
bool  fHelp 
)

Definition at line 669 of file masternode.cpp.

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

◆ getmasternodewinners()

UniValue getmasternodewinners ( const UniValue params,
bool  fHelp 
)

Definition at line 709 of file masternode.cpp.

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

◆ GetSeeSaw()

CAmount GetSeeSaw ( const CAmount blockValue,
int  nMasternodeCount,
int  nHeight 
)

Definition at line 2187 of file main.cpp.

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

◆ getseesawrewardratio()

UniValue getseesawrewardratio ( const UniValue params,
bool  fHelp 
)

Definition at line 924 of file masternode.cpp.

Here is the call graph for this function:

◆ getseesawrewardwithheight()

UniValue getseesawrewardwithheight ( const UniValue params,
bool  fHelp 
)

Definition at line 888 of file masternode.cpp.

Here is the call graph for this function:

◆ listmasternodeconf()

UniValue listmasternodeconf ( const UniValue params,
bool  fHelp 
)

Definition at line 607 of file masternode.cpp.

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

◆ listmasternodes()

UniValue listmasternodes ( const UniValue params,
bool  fHelp 
)

Definition at line 153 of file masternode.cpp.

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

◆ masternode()

UniValue masternode ( const UniValue params,
bool  fHelp 
)

Definition at line 24 of file masternode.cpp.

Here is the call graph for this function:

◆ masternodecurrent()

UniValue masternodecurrent ( const UniValue params,
bool  fHelp 
)

Definition at line 274 of file masternode.cpp.

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

◆ relaymasternodebroadcast()

UniValue relaymasternodebroadcast ( const UniValue params,
bool  fHelp 
)

Definition at line 1140 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 342 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 331 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 360 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 348 of file masternode.cpp.

Here is the caller graph for this function:

◆ startmasternode()

UniValue startmasternode ( const UniValue params,
bool  fHelp 
)

Definition at line 366 of file masternode.cpp.

Here is the call graph for this function:
Here is the caller 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 308 of file masternode.cpp.

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