Skip to content

Commit 6f876df

Browse files
StorADE checking update 6
1 parent a300310 commit 6f876df

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/masternode.cpp

Lines changed: 7 additions & 6 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,20 @@ void CMasternode::Check(bool forceCheck)
253253

254254
block_height = BlockReading->nHeight;
255255

256-
int nodeMastIPVer = addr.GetNetwork();
256+
CService nodeMastIPVer = addr;
257257

258-
int localMastIPVer = activeMasternode.service.GetNetwork();
258+
CService localMastIPVer = activeMasternode.service;
259259

260-
if(nodeMastIPVer != localMastIPVer)
260+
if(nodeMastIPVer.GetNetwork() != localMastIPVer.GetNetwork())
261261

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

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

267267
threads.create_thread(boost::bind(&CMasternode::CheckStorADEport, this));
268268
}
269+
269270
activeState = MASTERNODE_ENABLED; // OK
270271
}
271272

0 commit comments

Comments
 (0)