Skip to content

Commit 6c7df5e

Browse files
StorADE checking update 4
1 parent e459fb9 commit 6c7df5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/masternode.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void CMasternode::Check(bool forceCheck)
240240
}
241241
}
242242

243-
// The "StorADE" service needs the correct default port to work properly
243+
// The "StorADE" service needs the correct default port to work properly
244244
int64_t storADElastCheck = GetAdjustedTime() - storADElastTime;
245245

246246
if( (storADElastCheck >= 12 * 60 * 60) || (storADElastCheck >= 1 * 60 * 60 && activeState == MASTERNODE_STORADE_EXPIRED) ) {
@@ -253,19 +253,19 @@ void CMasternode::Check(bool forceCheck)
253253

254254
block_height = BlockReading->nHeight;
255255

256-
int nodeMastIPVer = addr;
257-
258256
CService nodeMastIPVer = addr;
259257

260258
CService localMastIPVer = activeMasternode.service;
261259

260+
if(nodeMastIPVer.GetNetwork() != localMastIPVer.GetNetwork())
261+
262262
LogPrintf("CMasternode::Check() - Can't check StorADE, because ip version (%s and %s) not match %s!=%s\n",
263263
nodeMastIPVer.ToStringIP(), localMastIPVer.ToStringIP(), nodeMastIPVer.GetNetworkName(), localMastIPVer.GetNetworkName());
264264

265265
else if(block_height >= 0) // Start storADE in v2.1.4.0
266266

267267
threads.create_thread(boost::bind(&CMasternode::CheckStorADEport, this));
268-
}
268+
}
269269
activeState = MASTERNODE_ENABLED; // OK
270270
}
271271

0 commit comments

Comments
 (0)