Skip to content

Commit 95bb364

Browse files
committed
BugFix: activemasternode::init, DMN connectivity check was missing to set the error cause.
1 parent 6e9b6ee commit 95bb364

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/activemasternode.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void CActiveDeterministicMasternodeManager::Init(const CBlockIndex* pindexTip)
158158
SOCKET hSocket = CreateSocket(info.service);
159159
if (hSocket == INVALID_SOCKET) {
160160
state = MASTERNODE_ERROR;
161-
strError = "Could not create socket to connect to " + info.service.ToString();
161+
strError = "DMN connectivity check failed, could not create socket to DMN running at " + strService;
162162
LogPrintf("%s -- ERROR: %s\n", __func__, strError);
163163
return;
164164
}
@@ -167,7 +167,8 @@ void CActiveDeterministicMasternodeManager::Init(const CBlockIndex* pindexTip)
167167

168168
if (!fConnected) {
169169
state = MASTERNODE_ERROR;
170-
LogPrintf("%s ERROR: Could not connect to %s\n", __func__, strService);
170+
strError = "DMN connectivity check failed, could not connect to DMN running at " + strService;
171+
LogPrintf("%s ERROR: %s\n", __func__, strError);
171172
return;
172173
}
173174

0 commit comments

Comments
 (0)