#include <masternode.h>
|
| | CMasternodeBroadcast () |
| |
| | CMasternodeBroadcast (CService newAddr, CTxIn newVin, CPubKey newPubkey, CPubKey newPubkey2, int protocolVersionIn, const CMasternodePing &_lastPing) |
| |
| | CMasternodeBroadcast (const CMasternode &mn) |
| |
| bool | CheckAndUpdate (int &nDoS) |
| |
| uint256 | GetHash () const |
| |
| void | Relay () |
| |
| bool | Sign (const CKey &key, const CPubKey &pubKey) |
| |
| bool | CheckSignature () const |
| |
| | SERIALIZE_METHODS (CMasternodeBroadcast, obj) |
| |
| | 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 |
| |
| | CSignedMessage () |
| |
| virtual | ~CSignedMessage () |
| |
| bool | Sign (const CKey &key, const CKeyID &keyID) |
| | CSignedMessage Class Functions inherited by network signed-messages. More...
|
| |
| bool | Sign (const std::string strSignKey) |
| |
| bool | CheckSignature (const CKeyID &keyID) const |
| |
| void | SetVchSig (const std::vector< unsigned char > &vchSigIn) |
| |
| std::vector< unsigned char > | GetVchSig () const |
| |
| std::string | GetSignatureBase64 () const |
| |
| bool | Sign (const CBLSSecretKey &sk) |
| |
| bool | CheckSignature (const CBLSPublicKey &pk) const |
| |
|
| static bool | Create (const CTxIn &vin, const CService &service, const CKey &keyCollateralAddressNew, const CPubKey &pubKeyCollateralAddressNew, const CKey &keyMasternodeNew, const CPubKey &pubKeyMasternodeNew, std::string &strErrorRet, CMasternodeBroadcast &mnbRet) |
| | Create Masternode broadcast, needs to be relayed manually after that. More...
|
| |
| static bool | Create (const std::string &strService, const std::string &strKey, const std::string &strTxHash, const std::string &strOutputIndex, std::string &strErrorRet, CMasternodeBroadcast &mnbRet, bool fOffline, int chainHeight) |
| |
| static bool | CheckDefaultPort (CService service, std::string &strErrorRet, const std::string &strContext) |
| |
Definition at line 242 of file masternode.h.
◆ CMasternodeBroadcast() [1/3]
| CMasternodeBroadcast::CMasternodeBroadcast |
( |
| ) |
|
◆ CMasternodeBroadcast() [2/3]
◆ CMasternodeBroadcast() [3/3]
| CMasternodeBroadcast::CMasternodeBroadcast |
( |
const CMasternode & |
mn | ) |
|
|
explicit |
◆ CheckAndUpdate()
| bool CMasternodeBroadcast::CheckAndUpdate |
( |
int & |
nDoS | ) |
|
◆ CheckDefaultPort()
| bool CMasternodeBroadcast::CheckDefaultPort |
( |
CService |
service, |
|
|
std::string & |
strErrorRet, |
|
|
const std::string & |
strContext |
|
) |
| |
|
static |
◆ CheckSignature()
| bool CMasternodeBroadcast::CheckSignature |
( |
| ) |
const |
◆ Create() [1/2]
| bool CMasternodeBroadcast::Create |
( |
const CTxIn & |
vin, |
|
|
const CService & |
service, |
|
|
const CKey & |
keyCollateralAddressNew, |
|
|
const CPubKey & |
pubKeyCollateralAddressNew, |
|
|
const CKey & |
keyMasternodeNew, |
|
|
const CPubKey & |
pubKeyMasternodeNew, |
|
|
std::string & |
strErrorRet, |
|
|
CMasternodeBroadcast & |
mnbRet |
|
) |
| |
|
static |
Create Masternode broadcast, needs to be relayed manually after that.
- Todo:
- : move outside of this function)
Definition at line 290 of file masternode.cpp.
◆ Create() [2/2]
| bool CMasternodeBroadcast::Create |
( |
const std::string & |
strService, |
|
|
const std::string & |
strKey, |
|
|
const std::string & |
strTxHash, |
|
|
const std::string & |
strOutputIndex, |
|
|
std::string & |
strErrorRet, |
|
|
CMasternodeBroadcast & |
mnbRet, |
|
|
bool |
fOffline, |
|
|
int |
chainHeight |
|
) |
| |
|
static |
◆ GetHash()
| uint256 CMasternodeBroadcast::GetHash |
( |
| ) |
const |
◆ Relay()
| void CMasternodeBroadcast::Relay |
( |
| ) |
|
◆ SERIALIZE_METHODS()
◆ Sign()
| bool CMasternodeBroadcast::Sign |
( |
const CKey & |
key, |
|
|
const CPubKey & |
pubKey |
|
) |
| |
The documentation for this class was generated from the following files: