Skip to content

Commit

Permalink
Add more time for SAPI check
Browse files Browse the repository at this point in the history
  • Loading branch information
thesolarminer committed Feb 19, 2021
1 parent ac88b2e commit 2718a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smartnode/smartnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,11 @@ bool CSmartnodePing::CheckAndUpdate(CSmartnode* pmn, bool fFromNewBroadcast, int
hostname = hostname.substr(0, pos);
}
// Try connecting to the SAPI port of the node
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 1000, NULL)) {
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 2000, NULL)) {
LogPrintf("CSmartnodePing::CheckAndUpdate -- Ping invalid 1/2, SAPI connection failed for SmartNode %s\n ",
pmn->addr.ToString());
CloseSocket(hSocket);
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 2000, NULL)) {
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 10000, NULL)) {
LogPrintf("CSmartnodePing::CheckAndUpdate -- Ping invalid 2/2, SAPI connection failed for SmartNode %s\n ",
pmn->addr.ToString());
CloseSocket(hSocket);
Expand Down

0 comments on commit 2718a17

Please sign in to comment.