Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
activemasternode.cpp
Go to the documentation of this file.
74 strError = "Masternode must accept connections from outside. Make sure listen configuration option is not overwritten by some another parameter.";
101 LogPrintf("CActiveMasternodeManager::Init -- proTxHash=%s, proTx=%s\n", dmn->proTxHash.ToString(), dmn->ToString());
111 LogPrintf("CActiveMasternodeManager::Init -- Checking inbound connection to '%s'\n", activeMasternodeInfo.service.ToString());
119 bool fConnected = ConnectSocketDirectly(activeMasternodeInfo.service, hSocket, nConnectTimeout) && IsSelectableSocket(hSocket);
134 void CActiveMasternodeManager::UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockIndex* pindexFork, bool fInitialDownload)
204 fFoundLocal = GetLocal(activeMasternodeInfo.service, &pnode->addr) && IsValidNetAddr(activeMasternodeInfo.service);
209 strError = "Can't detect valid external address. Please consider using the externalip configuration option if problem persists. Make sure to use IPv4 address only.";
Definition: activemasternode.h:23
std::string ToString(bool fUseGetnameinfo=true) const
Definition: netaddress.cpp:581
bool IsMNValid(const uint256 &proTxHash) const
Definition: deterministicmns.cpp:104
std::shared_ptr< const CDeterministicMN > CDeterministicMNCPtr
Definition: deterministicmns.h:249
std::unique_ptr< CDeterministicMNManager > deterministicMNManager
Definition: deterministicmns.cpp:24
Definition: deterministicmns.h:288
bool ConnectSocketDirectly(const CService &addrConnect, const SOCKET &hSocket, int nTimeout)
Definition: netbase.cpp:482
A combination of a network address (CNetAddr) and a (TCP) port.
Definition: netaddress.h:143
Definition: activemasternode.h:35
bool RequireRoutableExternalIP() const
Require addresses specified with "-externalip" parameter to be routable.
Definition: chainparams.h:65
bool CloseSocket(SOCKET &hSocket)
Close socket and set hSocket to INVALID_SOCKET.
Definition: netbase.cpp:690
bool GetLocalAddress(CService &addrRet)
Definition: activemasternode.cpp:182
bool IsMNPoSeBanned(const uint256 &proTxHash) const
Definition: deterministicmns.cpp:113
IP address (IPv6, or IPv4 using mapped IPv6 range (::FFFF:0:0/96))
Definition: netaddress.h:33
virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
Notifies listeners of updated block chain tip.
Definition: activemasternode.cpp:134
bool IsReachable(enum Network net)
check whether a given network is one we can probably connect to
Definition: net.cpp:316
CDeterministicMNCPtr GetMNByOperatorKey(const CBLSPublicKey &pubKey)
Definition: deterministicmns.cpp:152
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:947
bool Lookup(const char *pszName, std::vector< CService > &vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions)
Definition: netbase.cpp:140
std::string GetStateString() const
Definition: activemasternode.cpp:18
static bool IsValidNetAddr(CService addrIn)
Definition: activemasternode.cpp:217
std::unique_ptr< CBLSPublicKey > blsPubKeyOperator
Definition: activemasternode.h:25
bool LookupHost(const char *pszName, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions, bool fAllowLookup)
Definition: netbase.cpp:117
void Init(const CBlockIndex *pindex)
Definition: activemasternode.cpp:62
CActiveMasternodeManager * activeMasternodeManager
Definition: activemasternode.cpp:16