![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <masternode.h>
Public Types | |
| enum | state { MASTERNODE_PRE_ENABLED , MASTERNODE_ENABLED , MASTERNODE_EXPIRED , MASTERNODE_REMOVE , MASTERNODE_VIN_SPENT } |
Public Member Functions | |
| CMasternode () | |
| CMasternode (const CMasternode &other) | |
| CMasternode (const CDeterministicMNCPtr &dmn, int64_t registeredTime, const uint256 ®isteredHash) | |
| uint256 | GetSignatureHash () const override |
| std::string | GetStrMessage () const override |
| const CTxIn | GetVin () const |
| CPubKey | GetPubKey () const |
| void | SetLastPing (const CMasternodePing &_lastPing) |
| CMasternode & | operator= (const CMasternode &other) |
| arith_uint256 | CalculateScore (const uint256 &hash) const |
| SERIALIZE_METHODS (CMasternode, obj) | |
| template<typename Stream > | |
| CMasternode (deserialize_type, Stream &s) | |
| bool | UpdateFromNewBroadcast (CMasternodeBroadcast &mnb) |
| CMasternode::state | GetActiveState () const |
| bool | IsBroadcastedWithin (int seconds) |
| bool | IsPingedWithin (int seconds, int64_t now=-1) const |
| void | SetSpent () |
| void | Disable () |
| bool | IsEnabled () const |
| bool | IsPreEnabled () const |
| bool | IsAvailableState () const |
| std::string | Status () const |
| bool | IsValidNetAddr () const |
| CScript | GetPayeeScript () const |
Public Attributes | |
| CTxIn | vin |
| CService | addr |
| CPubKey | pubKeyCollateralAddress |
| CPubKey | pubKeyMasternode |
| int64_t | sigTime |
| int | protocolVersion |
| int | nScanningErrorCount |
| int | nLastScanningErrorBlockHeight |
| CMasternodePing | lastPing |
| CScript | mnPayeeScript {} |
Private Attributes | |
| RecursiveMutex | cs |
| bool | fCollateralSpent {false} |
Friends | |
| bool | operator== (const CMasternode &a, const CMasternode &b) |
| bool | operator!= (const CMasternode &a, const CMasternode &b) |
Additional Inherited Members |
Definition at line 80 of file masternode.h.
| enum CMasternode::state |
| Enumerator | |
|---|---|
| MASTERNODE_PRE_ENABLED | |
| MASTERNODE_ENABLED | |
| MASTERNODE_EXPIRED | |
| MASTERNODE_REMOVE | |
| MASTERNODE_VIN_SPENT | |
Definition at line 88 of file masternode.h.
|
explicit |
Definition at line 60 of file masternode.cpp.
| CMasternode::CMasternode | ( | const CMasternode & | other | ) |
Definition at line 76 of file masternode.cpp.
| CMasternode::CMasternode | ( | const CDeterministicMNCPtr & | dmn, |
| int64_t | registeredTime, | ||
| const uint256 & | registeredHash | ||
| ) |
Definition at line 92 of file masternode.cpp.
|
inline |
| arith_uint256 CMasternode::CalculateScore | ( | const uint256 & | hash | ) | const |
Definition at line 160 of file masternode.cpp.
|
inline |
Definition at line 186 of file masternode.h.
| CMasternode::state CMasternode::GetActiveState | ( | ) | const |
Definition at line 175 of file masternode.cpp.
|
inline |
Definition at line 231 of file masternode.h.
|
inline |
|
overridevirtual |
Implements CSignedMessage.
Definition at line 108 of file masternode.cpp.
|
overridevirtual |
Implements CSignedMessage.
Definition at line 121 of file masternode.cpp.
|
inline |
Definition at line 115 of file masternode.h.
|
inline |
Definition at line 203 of file masternode.h.
|
inline |
Definition at line 169 of file masternode.h.
|
inline |
Definition at line 193 of file masternode.h.
|
inline |
Definition at line 174 of file masternode.h.
|
inline |
| bool CMasternode::IsValidNetAddr | ( | ) | const |
Definition at line 193 of file masternode.cpp.
|
inline |
Definition at line 120 of file masternode.h.
|
inline |
Definition at line 147 of file masternode.h.
|
inline |
Definition at line 118 of file masternode.h.
|
inline |
Definition at line 180 of file masternode.h.
|
inline |
Definition at line 209 of file masternode.h.
| bool CMasternode::UpdateFromNewBroadcast | ( | CMasternodeBroadcast & | mnb | ) |
Definition at line 134 of file masternode.cpp.
|
friend |
Definition at line 140 of file masternode.h.
|
friend |
Definition at line 136 of file masternode.h.
| CService CMasternode::addr |
Definition at line 97 of file masternode.h.
|
mutableprivate |
Definition at line 84 of file masternode.h.
|
private |
Definition at line 85 of file masternode.h.
| CMasternodePing CMasternode::lastPing |
Definition at line 104 of file masternode.h.
| CScript CMasternode::mnPayeeScript {} |
Definition at line 230 of file masternode.h.
| int CMasternode::nLastScanningErrorBlockHeight |
Definition at line 103 of file masternode.h.
| int CMasternode::nScanningErrorCount |
Definition at line 102 of file masternode.h.
| int CMasternode::protocolVersion |
Definition at line 101 of file masternode.h.
| CPubKey CMasternode::pubKeyCollateralAddress |
Definition at line 98 of file masternode.h.
| CPubKey CMasternode::pubKeyMasternode |
Definition at line 99 of file masternode.h.
| int64_t CMasternode::sigTime |
Definition at line 100 of file masternode.h.
| CTxIn CMasternode::vin |
Definition at line 96 of file masternode.h.