@@ -76,7 +76,7 @@ OperationResult CActiveDeterministicMasternodeManager::SetOperatorKey(const std:
7676 }
7777 info.keyOperator = *opSk;
7878 info.pubKeyOperator = info.keyOperator .GetPublicKey ();
79- return OperationResult ( true ) ;
79+ return { true } ;
8080}
8181
8282OperationResult CActiveDeterministicMasternodeManager::GetOperatorKey (CBLSSecretKey& key, CDeterministicMNCPtr& dmn) const
@@ -93,7 +93,7 @@ OperationResult CActiveDeterministicMasternodeManager::GetOperatorKey(CBLSSecret
9393 }
9494 // return key
9595 key = info.keyOperator ;
96- return OperationResult ( true ) ;
96+ return { true } ;
9797}
9898
9999void CActiveDeterministicMasternodeManager::Init (const CBlockIndex* pindexTip)
@@ -266,7 +266,7 @@ OperationResult initMasternode(const std::string& _strMasterNodePrivKey, const s
266266 return errorOut (strprintf (_ (" Invalid -masternodeaddr port %d, only %d is supported on %s-net." ),
267267 nPort, nDefaultPort, Params ().NetworkIDString ()));
268268 }
269- CService addrTest (LookupNumeric (strHost. c_str () , nPort));
269+ CService addrTest (LookupNumeric (strHost, nPort));
270270 if (!addrTest.IsValid ()) {
271271 return errorOut (strprintf (_ (" Invalid -masternodeaddr address: %s" ), _strMasterNodeAddr));
272272 }
@@ -295,7 +295,7 @@ OperationResult initMasternode(const std::string& _strMasterNodePrivKey, const s
295295 if (pmn) activeMasternode.EnableHotColdMasterNode (pmn->vin , pmn->addr );
296296 }
297297
298- return OperationResult ( true ) ;
298+ return { true } ;
299299}
300300
301301//
@@ -426,7 +426,7 @@ bool CActiveMasternode::SendMasternodePing(std::string& errorMessage)
426426
427427 // Update lastPing for our masternode in Masternode list
428428 CMasternode* pmn = mnodeman.Find (vin->prevout );
429- if (pmn != NULL ) {
429+ if (pmn != nullptr ) {
430430 if (pmn->IsPingedWithin (MasternodePingSeconds (), mnp.sigTime )) {
431431 errorMessage = " Too early to send Masternode Ping" ;
432432 return false ;
@@ -473,7 +473,7 @@ bool CActiveMasternode::EnableHotColdMasterNode(CTxIn& newVin, CService& newServ
473473 return true ;
474474}
475475
476- void CActiveMasternode::GetKeys (CKey& _privKeyMasternode, CPubKey& _pubKeyMasternode)
476+ void CActiveMasternode::GetKeys (CKey& _privKeyMasternode, CPubKey& _pubKeyMasternode) const
477477{
478478 if (!privKeyMasternode.IsValid () || !pubKeyMasternode.IsValid ()) {
479479 throw std::runtime_error (" Error trying to get masternode keys" );
0 commit comments