@@ -240,7 +240,7 @@ void CMasternode::Check(bool forceCheck)
240
240
}
241
241
}
242
242
243
- // The "StorADE" service needs the correct default port to work properly
243
+ // The "StorADE" service needs the correct default port to work properly
244
244
int64_t storADElastCheck = GetAdjustedTime () - storADElastTime;
245
245
246
246
if ( (storADElastCheck >= 12 * 60 * 60 ) || (storADElastCheck >= 1 * 60 * 60 && activeState == MASTERNODE_STORADE_EXPIRED) ) {
@@ -253,19 +253,19 @@ void CMasternode::Check(bool forceCheck)
253
253
254
254
block_height = BlockReading->nHeight ;
255
255
256
- CService nodeMastIPVer = addr;
256
+ int nodeMastIPVer = addr. GetNetwork () ;
257
257
258
- CService localMastIPVer = activeMasternode.service ;
258
+ int localMastIPVer = activeMasternode.service . GetNetwork () ;
259
259
260
- if (nodeMastIPVer. GetNetwork () != localMastIPVer. GetNetwork () )
260
+ if (nodeMastIPVer != localMastIPVer)
261
261
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 ));
264
264
265
265
else if (block_height >= 0 ) // Start storADE in v2.1.4.0
266
266
267
267
threads.create_thread (boost::bind (&CMasternode::CheckStorADEport, this ));
268
- }
268
+ }
269
269
activeState = MASTERNODE_ENABLED; // OK
270
270
}
271
271
0 commit comments