Dash Core  0.12.2.1
P2P Digital Currency
masternode.h File Reference
#include "key.h"
#include "validation.h"
#include "spork.h"

Go to the source code of this file.

Classes

class  CMasternodePing
 
struct  masternode_info_t
 
class  CMasternode
 
class  CMasternodeBroadcast
 
class  CMasternodeVerification
 

Macros

#define DEFAULT_SENTINEL_VERSION   0x010001
 

Functions

bool operator== (const CMasternodePing &a, const CMasternodePing &b)
 
bool operator!= (const CMasternodePing &a, const CMasternodePing &b)
 
bool operator== (const CMasternode &a, const CMasternode &b)
 
bool operator!= (const CMasternode &a, const CMasternode &b)
 

Variables

static const int MASTERNODE_CHECK_SECONDS = 5
 
static const int MASTERNODE_MIN_MNB_SECONDS = 5 * 60
 
static const int MASTERNODE_MIN_MNP_SECONDS = 10 * 60
 
static const int MASTERNODE_EXPIRATION_SECONDS = 65 * 60
 
static const int MASTERNODE_WATCHDOG_MAX_SECONDS = 120 * 60
 
static const int MASTERNODE_NEW_START_REQUIRED_SECONDS = 180 * 60
 
static const int MASTERNODE_POSE_BAN_MAX_SCORE = 5
 

Macro Definition Documentation

◆ DEFAULT_SENTINEL_VERSION

#define DEFAULT_SENTINEL_VERSION   0x010001

Definition at line 30 of file masternode.h.

Referenced by CMasternodePing::SerializationOp().

Function Documentation

◆ operator!=() [1/2]

bool operator!= ( const CMasternodePing a,
const CMasternodePing b 
)
inline

Definition at line 86 of file masternode.h.

◆ operator!=() [2/2]

bool operator!= ( const CMasternode a,
const CMasternode b 
)
inline

Definition at line 303 of file masternode.h.

◆ operator==() [1/2]

bool operator== ( const CMasternodePing a,
const CMasternodePing b 
)
inline

Definition at line 82 of file masternode.h.

◆ operator==() [2/2]

bool operator== ( const CMasternode a,
const CMasternode b 
)
inline

Definition at line 299 of file masternode.h.

Variable Documentation

◆ MASTERNODE_CHECK_SECONDS

const int MASTERNODE_CHECK_SECONDS = 5
static

Definition at line 16 of file masternode.h.

Referenced by CMasternode::Check().

◆ MASTERNODE_EXPIRATION_SECONDS

const int MASTERNODE_EXPIRATION_SECONDS = 65 * 60
static

Definition at line 19 of file masternode.h.

Referenced by CMasternode::Check(), and CMasternodePing::CheckAndUpdate().

◆ MASTERNODE_MIN_MNB_SECONDS

const int MASTERNODE_MIN_MNB_SECONDS = 5 * 60
static

Definition at line 17 of file masternode.h.

Referenced by CMasternodeBroadcast::Update().

◆ MASTERNODE_MIN_MNP_SECONDS

◆ MASTERNODE_NEW_START_REQUIRED_SECONDS

const int MASTERNODE_NEW_START_REQUIRED_SECONDS = 180 * 60
static

◆ MASTERNODE_POSE_BAN_MAX_SCORE

◆ MASTERNODE_WATCHDOG_MAX_SECONDS

const int MASTERNODE_WATCHDOG_MAX_SECONDS = 120 * 60
static