]> Git Repo - VerusCoin.git/blobdiff - src/net.cpp
Cleanup and complete basic currency launch changes
[VerusCoin.git] / src / net.cpp
index ab37398c1c10afa5254c9be3359e4b71b1796ce4..7c6d37b916ebda1ef35e13e5c4c644415e49bf9f 100644 (file)
@@ -429,6 +429,7 @@ void CNode::CloseSocketDisconnect()
         vRecvMsg.clear();
 }
 
+
 void CNode::PushVersion()
 {
     int nBestHeight = g_signals.GetHeight().get_value_or(0);
@@ -442,7 +443,9 @@ void CNode::PushVersion()
     else
         LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id);
 
-    if (CConstVerusSolutionVector::activationHeight.ActiveVersion(nBestHeight + 1) >= CConstVerusSolutionVector::activationHeight.ACTIVATE_PBAAS)
+    //printf("net send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString().c_str(), id);
+
+    if (PROTOCOL_VERSION >= MIN_PBAAS_VERSION)
     {
         CKeyID nodePaymentAddress;
         if (USE_EXTERNAL_PUBKEY)
@@ -454,7 +457,7 @@ void CNode::PushVersion()
             }
             LogPrint("net", "send PBaaS node payment pubkey hash -- pubkey: %s, hash: %s\n", NOTARY_PUBKEY, nodePaymentAddress.ToString());
         }
-        PushMessage("version", PROTOCOL_VERSION > MIN_PBAAS_VERSION ? PROTOCOL_VERSION : MIN_PBAAS_VERSION
+        PushMessage("version", PROTOCOL_VERSION, 
                     nLocalServices, nTime, addrYou, addrMe, nLocalHostNonce, nodePaymentAddress, strSubVersion, nBestHeight, true);
     }
     else
@@ -464,9 +467,6 @@ void CNode::PushVersion()
 }
 
 
-
-
-
 std::map<CSubNet, int64_t> CNode::setBanned;
 CCriticalSection CNode::cs_setBanned;
 
This page took 0.023926 seconds and 4 git commands to generate.