Skip to content

Commit 2718a17

Browse files
committed
Add more time for SAPI check
1 parent ac88b2e commit 2718a17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/smartnode/smartnode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,11 +821,11 @@ bool CSmartnodePing::CheckAndUpdate(CSmartnode* pmn, bool fFromNewBroadcast, int
821821
hostname = hostname.substr(0, pos);
822822
}
823823
// Try connecting to the SAPI port of the node
824-
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 1000, NULL)) {
824+
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 2000, NULL)) {
825825
LogPrintf("CSmartnodePing::CheckAndUpdate -- Ping invalid 1/2, SAPI connection failed for SmartNode %s\n ",
826826
pmn->addr.ToString());
827827
CloseSocket(hSocket);
828-
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 2000, NULL)) {
828+
if (!ConnectSocketByName(nodeAddr, hSocket, hostname.c_str(), DEFAULT_SAPI_SERVER_PORT, 10000, NULL)) {
829829
LogPrintf("CSmartnodePing::CheckAndUpdate -- Ping invalid 2/2, SAPI connection failed for SmartNode %s\n ",
830830
pmn->addr.ToString());
831831
CloseSocket(hSocket);

0 commit comments

Comments
 (0)