 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
53 notCapableReason =
"Can't detect external address. Please use the masternodeaddr configuration option.";
83 std::string errorMessage;
85 LogPrintf(
"CActiveMasternode::ManageStatus() - Error on Ping: %s\n", errorMessage);
99 return "Node just started, not yet activated";
101 return "Sync in progress. Must wait until sync is complete to start Masternode";
105 return "Masternode successfully started";
114 errorMessage =
"Masternode is not in a running status";
122 errorMessage =
"Error upon calling SetKey.\n";
129 errorMessage =
"Couldn't sign Masternode Ping";
135 if (pmn !=
nullptr) {
137 errorMessage =
"Too early to send Masternode Ping";
154 errorMessage =
"Masternode List doesn't include our Masternode, shutting down Masternode pinging service! " +
vin.
ToString();
172 LogPrintf(
"CActiveMasternode::EnableHotColdMasterNode() - Enabled! You may shut down the cold daemon.\n");
An input of a transaction.
bool EnableHotColdMasterNode(CTxIn &vin, CService &addr)
Enable cold wallet mode (run a Masternode with no funds)
A combination of a network address (CNetAddr) and a (TCP) port.
void SplitHostPort(std::string in, int &portOut, std::string &hostOut)
static bool CheckDefaultPort(CService service, std::string &strErrorRet, const std::string &strContext)
std::string notCapableReason
CMasternode * Find(const CScript &payee)
Find an entry.
bool IsBlockchainSynced()
bool Sign(CKey &keyMasternode, CPubKey &pubKeyMasternode)
std::vector< unsigned char > masternodeStealthAddress
CMasternodeSync masternodeSync
std::string strMasterNodePrivKey
#define ACTIVE_MASTERNODE_SYNC_IN_PROCESS
CMasternodeMan mnodeman
Masternode manager.
std::string ToString() const
std::string strMasterNodeAddr
bool GetLocal(CService &addr, const CNetAddr *paddrPeer)
void ManageStatus()
Manage status of main Masternode.
std::string GetStatusMessage() const
std::map< uint256, CMasternodeBroadcast > mapSeenMasternodeBroadcast
256-bit unsigned big integer.
#define LogPrint(category,...)
#define ACTIVE_MASTERNODE_NOT_CAPABLE
static bool GetKeysFromSecret(const std::string &strSecret, CKey &keyRet, CPubKey &pubkeyRet)
Set the private/public key values, returns true if successful.
An encapsulated public key.
A CService with information about it as peer.
An encapsulated private key.
std::string ToString() const
std::map< uint256, CMasternodePing > mapSeenMasternodePing
bool OpenNetworkConnection(const CAddress &addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound, const char *pszDest, bool fOneShot, bool fFeeler)
CService LookupNumeric(const char *pszName, int portDefault)
const CChainParams & Params()
Return the currently selected parameters.
bool IsPingedWithin(int seconds, int64_t now=-1)
#define ACTIVE_MASTERNODE_INITIAL
#define MASTERNODE_PING_SECONDS
#define ACTIVE_MASTERNODE_STARTED
bool SendMasternodePing(std::string &errorMessage)
Ping Masternode.
void Check(bool forceCheck=false)