@@ -3403,7 +3403,7 @@ void CConnman::ThreadOpenMasternodeConnections(CDeterministicMNManager& dmnman,
34033403 continue ;
34043404 }
34053405 // back off connecting to an address if we already tried recently
3406- int64_t last_attempt = mn_metaman.GetMetaInfo (dmn->proTxHash )-> GetLastOutboundAttempt ( );
3406+ int64_t last_attempt = mn_metaman.GetLastOutboundAttempt (dmn->proTxHash );
34073407 if (nANow - last_attempt < chainParams.LLMQConnectionRetryTimeout ()) {
34083408 continue ;
34093409 }
@@ -3426,14 +3426,14 @@ void CConnman::ThreadOpenMasternodeConnections(CDeterministicMNManager& dmnman,
34263426 bool connectedAndOutbound = connectedProRegTxHashes.count (dmn->proTxHash ) && !connectedProRegTxHashes[dmn->proTxHash ];
34273427 if (connectedAndOutbound) {
34283428 // we already have an outbound connection to this MN so there is no theed to probe it again
3429- mn_metaman.GetMetaInfo (dmn->proTxHash )-> SetLastOutboundSuccess ( nANow);
3429+ mn_metaman.SetLastOutboundSuccess (dmn->proTxHash , nANow);
34303430 it = masternodePendingProbes.erase (it);
34313431 continue ;
34323432 }
34333433
34343434 ++it;
34353435
3436- int64_t lastAttempt = mn_metaman.GetMetaInfo (dmn->proTxHash )-> GetLastOutboundAttempt ( );
3436+ int64_t lastAttempt = mn_metaman.GetLastOutboundAttempt (dmn->proTxHash );
34373437 // back off trying connecting to an address if we already tried recently
34383438 if (nANow - lastAttempt < chainParams.LLMQConnectionRetryTimeout ()) {
34393439 continue ;
@@ -3493,7 +3493,7 @@ void CConnman::ThreadOpenMasternodeConnections(CDeterministicMNManager& dmnman,
34933493
34943494 didConnect = true ;
34953495
3496- mn_metaman.GetMetaInfo (connectToDmn->proTxHash )-> SetLastOutboundAttempt ( nANow);
3496+ mn_metaman.SetLastOutboundAttempt (connectToDmn->proTxHash , nANow);
34973497
34983498 OpenMasternodeConnection (CAddress (connectToDmn->pdmnState ->netInfo ->GetPrimary (), NODE_NETWORK), /* use_v2transport=*/ GetLocalServices () & NODE_P2P_V2, isProbe);
34993499 // should be in the list now if connection was opened
@@ -3506,7 +3506,7 @@ void CConnman::ThreadOpenMasternodeConnections(CDeterministicMNManager& dmnman,
35063506 if (!connected) {
35073507 LogPrint (BCLog::NET_NETCONN, " CConnman::%s -- connection failed for masternode %s, service=%s\n " , __func__, connectToDmn->proTxHash .ToString (), connectToDmn->pdmnState ->netInfo ->GetPrimary ().ToStringAddrPort ());
35083508 // Will take a few consequent failed attempts to PoSe-punish a MN.
3509- if (mn_metaman.GetMetaInfo (connectToDmn->proTxHash )-> OutboundFailedTooManyTimes ( )) {
3509+ if (mn_metaman.OutboundFailedTooManyTimes (connectToDmn->proTxHash )) {
35103510 LogPrint (BCLog::NET_NETCONN, " CConnman::%s -- failed to connect to masternode %s too many times\n " , __func__, connectToDmn->proTxHash .ToString ());
35113511 }
35123512 }
0 commit comments