Skip to content

Commit a300310

Browse files
StorADE checking update 5
1 parent 6c7df5e commit a300310

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/masternode.cpp

Lines changed: 7 additions & 7 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-
CService nodeMastIPVer = addr;
256+
int nodeMastIPVer = addr.GetNetwork();
257257

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

260-
if(nodeMastIPVer.GetNetwork() != localMastIPVer.GetNetwork())
260+
if(nodeMastIPVer != localMastIPVer)
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(), nodeMastIPVer.GetNetworkName(), localMastIPVer.GetNetworkName());
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));
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)