reduced max outbound connections from 15 to 8 --version 0.3 rc4
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>
Fri, 2 Jul 2010 23:43:29 +0000 (23:43 +0000)
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>
Fri, 2 Jul 2010 23:43:29 +0000 (23:43 +0000)
init.cpp
irc.cpp
main.cpp
net.cpp
serialize.h
ui.cpp

index ecb1709..1630534 100644 (file)
--- a/init.cpp
+++ b/init.cpp
@@ -383,7 +383,7 @@ bool CMyApp::OnInit2()
     if (!fDebug && !pszSetDataDir[0])\r
         ShrinkDebugFile();\r
     printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");\r
-    printf("Bitcoin version 0.%d.%d%s beta, OS version %s\n", VERSION/100, VERSION%100, pszSubVer, ((string)wxGetOsDescription()).c_str());\r
+    printf("Bitcoin version %d.%d.%d%s, OS version %s\n", VERSION/10000, (VERSION/100)%100, VERSION%100, pszSubVer, ((string)wxGetOsDescription()).c_str());\r
     printf("System default language is %d %s\n", m_locale.GetSystemLanguage(), ((string)m_locale.GetSysName()).c_str());\r
     printf("Language file %s (%s)\n", (string("locale/") + (string)m_locale.GetCanonicalName() + "/LC_MESSAGES/bitcoin.mo").c_str(), ((string)m_locale.GetLocale()).c_str());\r
 \r
diff --git a/irc.cpp b/irc.cpp
index c63ba47..46c53bd 100644 (file)
--- a/irc.cpp
+++ b/irc.cpp
@@ -204,7 +204,6 @@ void ThreadIRCSeed(void* parg)
         else\r
             strMyName = strprintf("x%u", GetRand(1000000000));\r
 \r
-\r
         Send(hSocket, strprintf("NICK %s\r", strMyName.c_str()).c_str());\r
         Send(hSocket, strprintf("USER %s 8 * : %s\r", strMyName.c_str(), strMyName.c_str()).c_str());\r
 \r
index e3b0474..2b08744 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -1862,6 +1862,8 @@ bool ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
         uint64 nNonce = 1;\r
         string strSubVer;\r
         vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;\r
+        if (pfrom->nVersion == 10300)\r
+            pfrom->nVersion = 300;\r
         if (pfrom->nVersion >= 106 && !vRecv.empty())\r
             vRecv >> addrFrom >> nNonce;\r
         if (pfrom->nVersion >= 106 && !vRecv.empty())\r
diff --git a/net.cpp b/net.cpp
index 3c5c9bd..dc1debd 100644 (file)
--- a/net.cpp
+++ b/net.cpp
@@ -882,7 +882,7 @@ void ThreadOpenConnections2(void* parg)
         // Wait\r
         vnThreadsRunning[1]--;\r
         Sleep(500);\r
-        const int nMaxConnections = 15;\r
+        const int nMaxConnections = 8;\r
         while (vNodes.size() >= nMaxConnections)\r
         {\r
             Sleep(2000);\r
index b0529a0..57ac5e3 100644 (file)
@@ -20,7 +20,7 @@ class CDataStream;
 class CAutoFile;\r
 \r
 static const int VERSION = 300;\r
-static const char* pszSubVer = " rc2";\r
+static const char* pszSubVer = "";\r
 \r
 \r
 \r
diff --git a/ui.cpp b/ui.cpp
index 42da9ca..973cb0c 100644 (file)
--- a/ui.cpp
+++ b/ui.cpp
@@ -1598,7 +1598,7 @@ void COptionsDialog::OnButtonApply(wxCommandEvent& event)
 \r
 CAboutDialog::CAboutDialog(wxWindow* parent) : CAboutDialogBase(parent)\r
 {\r
-    m_staticTextVersion->SetLabel(strprintf(_("version 0.%d.%d beta"), VERSION/100, VERSION%100));\r
+    m_staticTextVersion->SetLabel(strprintf(_("version %d.%d.%d"), VERSION/10000, (VERSION/100)%100, VERSION%100));\r
 \r
     // Change (c) into UTF-8 or ANSI copyright symbol\r
     wxString str = m_staticTextMain->GetLabel();\r