From ce6e5cf8b048cb8a074fe4d28b05bedae1585ba3 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 31 Aug 2015 05:28:37 +0300 Subject: [PATCH] fix bug where hot mn can't start if upnp is on --- src/net.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index 69a740a15cf6..3f39f399c5d9 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -391,7 +391,9 @@ CNode* FindNode(const CService& addr) CNode* ConnectNode(CAddress addrConnect, const char *pszDest, bool darkSendMaster) { if (pszDest == NULL) { - if (IsLocal(addrConnect)) + // we clean masternode connections in CMasternodeMan::ProcessMasternodeConnections() + // so should be safe to skip this and connect to local Hot MN on CActiveMasternode::ManageStatus() + if (IsLocal(addrConnect) && !darkSendMaster) return NULL; // Look for an existing connection