Research
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateeCash.com
What changed

Bitcoin v0.2.13 → v0.3.0

15 files · +55 · −38 · d77eac25b · 2010-07-04 · s_nakamoto

Release commit message: version 0.3 release

v0.3.0. Previous diff: v0.2.12 → v0.2.13. Next: v0.3.0 → v0.3.1.

base58.h (modified)

1--- v0.2.13/base58.h2+++ v0.3.0/base58.h3@@ -1,4 +1,4 @@4-// Copyright (c) 2009 Satoshi Nakamoto5+// Copyright (c) 2009-2010 Satoshi Nakamoto6 // Distributed under the MIT/X11 software license, see the accompanying7 // file license.txt or http://www.opensource.org/licenses/mit-license.php.8 

build-msw.txt (modified)

1--- v0.2.13/build-msw.txt2+++ v0.3.0/build-msw.txt3@@ -1,5 +1,3 @@4-Bitcoin v0.2.0 BETA5-6 Copyright (c) 2009-2010 Satoshi Nakamoto7 Distributed under the MIT/X11 software license, see the accompanying8 file license.txt or http://www.opensource.org/licenses/mit-license.php.

build-osx.txt (modified)

1--- v0.2.13/build-osx.txt2+++ v0.3.0/build-osx.txt3@@ -1,3 +1,11 @@4+Copyright (c) 2009-2010 Satoshi Nakamoto5+Distributed under the MIT/X11 software license, see the accompanying6+file license.txt or http://www.opensource.org/licenses/mit-license.php.7+This product includes software developed by the OpenSSL Project for use in8+the OpenSSL Toolkit (http://www.openssl.org/).  This product includes9+cryptographic software written by Eric Young (eay@cryptsoft.com).10+11+12 Mac OS X build instructions13 Laszlo Hanyecz (solar@heliacal.net)14 

build-unix.txt (modified)

1--- v0.2.13/build-unix.txt2+++ v0.3.0/build-unix.txt3@@ -1,5 +1,3 @@4-Bitcoin v0.2.0 BETA5-6 Copyright (c) 2009-2010 Satoshi Nakamoto7 Distributed under the MIT/X11 software license, see the accompanying8 file license.txt or http://www.opensource.org/licenses/mit-license.php.9@@ -18,7 +16,7 @@10 sudo apt-get install libssl-dev11 sudo apt-get install libdb4.7-dev12 sudo apt-get install libdb4.7++-dev13-sudo apt-get install libboost-dev14+sudo apt-get install libboost-all-dev15 16 We're now using wxWidgets 2.9, which uses UTF-8.17 18@@ -36,11 +34,11 @@19 Boost          MIT-like license20 21 Versions used in this release:22-GCC          4.3.323+GCC          4.4.324 OpenSSL      0.9.8k25 wxWidgets    2.9.026 Berkeley DB  4.7.25.NC27-Boost        1.38.028+Boost        1.40.029 30 31 Notes32@@ -65,12 +63,21 @@33 sudo su34 make install35 ldconfig36+su <username>37+cd ..38+mkdir buildbase39+cd buildbase40+../configure --disable-gui --enable-debug --disable-shared --enable-monolithic41+make42+sudo su43+make install44+ldconfig45 46 47 Boost48 -----49 If you want to build Boost yourself,50-cd /usr/local/boost_1_38_051+cd /usr/local/boost_1_40_052 su53 ./bootstrap.sh54 ./bjam install

headers.h (modified)

1--- v0.2.13/headers.h2+++ v0.3.0/headers.h3@@ -114,6 +114,7 @@4 #include "xpm/bitcoin20.xpm"5 #include "xpm/bitcoin32.xpm"6 #include "xpm/bitcoin48.xpm"7+#include "xpm/bitcoin80.xpm"8 #include "xpm/check.xpm"9 #include "xpm/send16.xpm"10 #include "xpm/send16noshadow.xpm"

init.cpp (modified)

1--- v0.2.13/init.cpp2+++ v0.3.0/init.cpp3@@ -383,7 +383,7 @@4     if (!fDebug && !pszSetDataDir[0])5         ShrinkDebugFile();6     printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");7-    printf("Bitcoin version 0.%d.%d%s beta, OS version %s\n", VERSION/100, VERSION%100, pszSubVer, ((string)wxGetOsDescription()).c_str());8+    printf("Bitcoin version %d.%d.%d%s beta, OS version %s\n", VERSION/10000, (VERSION/100)%100, VERSION%100, pszSubVer, ((string)wxGetOsDescription()).c_str());9     printf("System default language is %d %s\n", m_locale.GetSystemLanguage(), ((string)m_locale.GetSysName()).c_str());10     printf("Language file %s (%s)\n", (string("locale/") + (string)m_locale.GetCanonicalName() + "/LC_MESSAGES/bitcoin.mo").c_str(), ((string)m_locale.GetLocale()).c_str());11 

irc.cpp (modified)

1--- v0.2.13/irc.cpp2+++ v0.3.0/irc.cpp3@@ -166,10 +166,12 @@4 5     while (!fShutdown)6     {7-        CAddress addrConnect("216.155.130.130:6667");8+        //CAddress addrConnect("216.155.130.130:6667"); // chat.freenode.net9+        CAddress addrConnect("92.243.23.21:6667"); // irc.lfnet.org10         if (!fTOR)11         {12-            struct hostent* phostent = gethostbyname("chat.freenode.net");13+            //struct hostent* phostent = gethostbyname("chat.freenode.net");14+            struct hostent* phostent = gethostbyname("irc.lfnet.org");15             if (phostent && phostent->h_addr_list && phostent->h_addr_list[0])16                 addrConnect = CAddress(*(u_long*)phostent->h_addr_list[0], htons(6667));17         }18@@ -201,7 +203,6 @@19             strMyName = EncodeAddress(addrLocalHost);20         else21             strMyName = strprintf("x%u", GetRand(1000000000));22-23 24         Send(hSocket, strprintf("NICK %s\r", strMyName.c_str()).c_str());25         Send(hSocket, strprintf("USER %s 8 * : %s\r", strMyName.c_str(), strMyName.c_str()).c_str());

key.h (modified)

1--- v0.2.13/key.h2+++ v0.3.0/key.h3@@ -1,4 +1,4 @@4-// Copyright (c) 2009 Satoshi Nakamoto5+// Copyright (c) 2009-2010 Satoshi Nakamoto6 // Distributed under the MIT/X11 software license, see the accompanying7 // file license.txt or http://www.opensource.org/licenses/mit-license.php.8 

main.cpp (modified)

1--- v0.2.13/main.cpp2+++ v0.3.0/main.cpp3@@ -1862,6 +1862,8 @@4         uint64 nNonce = 1;5         string strSubVer;6         vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;7+        if (pfrom->nVersion == 10300)8+            pfrom->nVersion = 300;9         if (pfrom->nVersion >= 106 && !vRecv.empty())10             vRecv >> addrFrom >> nNonce;11         if (pfrom->nVersion >= 106 && !vRecv.empty())12@@ -2707,7 +2709,7 @@13             }14 15             // Update nTime every few seconds16-            const uint64 nMask = 0xffff;17+            const unsigned int nMask = 0xffff;18             if ((++tmp.block.nNonce & nMask) == 0)19             {20                 // Meter hashes/sec21@@ -2725,7 +2727,7 @@22                     string strStatus = strprintf("    %.0f khash/s", dHashesPerSec/1000.0);23                     UIThreadCall(bind(CalledSetStatusBar, strStatus, 0));24                     static int64 nLogTime;25-                    if (GetTime() - nLogTime > 60 * 60)26+                    if (GetTime() - nLogTime > 30 * 60)27                     {28                         nLogTime = GetTime();29                         printf("%s ", DateTimeStrFormat("%x %H:%M", GetTime()).c_str());

net.cpp (modified)

1--- v0.2.13/net.cpp2+++ v0.3.0/net.cpp3@@ -882,7 +882,7 @@4         // Wait5         vnThreadsRunning[1]--;6         Sleep(500);7-        const int nMaxConnections = 15;8+        const int nMaxConnections = 8;9         while (vNodes.size() >= nMaxConnections)10         {11             Sleep(2000);

serialize.h (modified)

1--- v0.2.13/serialize.h2+++ v0.3.0/serialize.h3@@ -19,7 +19,7 @@4 class CDataStream;5 class CAutoFile;6 7-static const int VERSION = 213;8+static const int VERSION = 300;9 static const char* pszSubVer = "";10 11 

setup.nsi (modified)

1--- v0.2.13/setup.nsi2+++ v0.3.0/setup.nsi3@@ -7,7 +7,7 @@4 5 # General Symbol Definitions6 !define REGKEY "SOFTWARE\$(^Name)"7-!define VERSION 0.2.08+!define VERSION 0.3.09 !define COMPANY "Bitcoin project"10 !define URL http://www.bitcoin.org/11 12@@ -42,12 +42,12 @@13 !insertmacro MUI_LANGUAGE English14 15 # Installer attributes16-OutFile bitcoin-0.2.0-win32-setup.exe17+OutFile bitcoin-0.3.0-win32-setup.exe18 InstallDir $PROGRAMFILES\Bitcoin19 CRCCheck on20 XPStyle on21 ShowInstDetails show22-VIProductVersion 0.2.0.023+VIProductVersion 0.3.0.024 VIAddVersionKey ProductName Bitcoin25 VIAddVersionKey ProductVersion "${VERSION}"26 VIAddVersionKey CompanyName "${COMPANY}"27@@ -67,6 +67,10 @@28     File mingwm10.dll29     File license.txt30     File readme.txt31+    SetOutPath $INSTDIR\daemon32+    File /r daemon\*.*33+    SetOutPath $INSTDIR\locale34+    File /r locale\*.*35     SetOutPath $INSTDIR\src36     File /r src\*.*37     SetOutPath $INSTDIR38@@ -112,6 +116,8 @@39     Delete /REBOOTOK $INSTDIR\mingwm10.dll40     Delete /REBOOTOK $INSTDIR\license.txt41     Delete /REBOOTOK $INSTDIR\readme.txt42+    RMDir /r /REBOOTOK $INSTDIR\daemon43+    RMDir /r /REBOOTOK $INSTDIR\locale44     RMDir /r /REBOOTOK $INSTDIR\src45     DeleteRegValue HKCU "${REGKEY}\Components" Main46 SectionEnd

ui.cpp (modified)

1--- v0.2.13/ui.cpp2+++ v0.3.0/ui.cpp3@@ -250,7 +250,7 @@4 #ifdef __WXMSW__5     SetIcon(wxICON(bitcoin));6 #else7-    SetIcon(bitcoin20_xpm);8+    SetIcon(bitcoin80_xpm);9     SetBackgroundColour(m_toolBar->GetBackgroundColour());10     wxFont fontTmp = m_staticText41->GetFont();11     fontTmp.SetFamily(wxFONTFAMILY_TELETYPE);12@@ -375,13 +375,13 @@13     // to get rid of the deprecated warning.  Just ignore it.14     if (!event.Iconized())15         fClosedToTray = false;16-#ifdef __WXMSW__17+//#ifdef __WXMSW__18     // The tray icon sometimes disappears on ubuntu karmic19-    // Hiding the taskbar button doesn't work reliably on ubuntu lucid20+    // Hiding the taskbar button doesn't work cleanly on ubuntu lucid21     if (fMinimizeToTray && event.Iconized())22         fClosedToTray = true;23     Show(!fClosedToTray);24-#endif25+//#endif26     ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);27 }28 29@@ -1598,7 +1598,7 @@30 31 CAboutDialog::CAboutDialog(wxWindow* parent) : CAboutDialogBase(parent)32 {33-    m_staticTextVersion->SetLabel(strprintf(_("version 0.%d.%d beta"), VERSION/100, VERSION%100));34+    m_staticTextVersion->SetLabel(strprintf(_("version %d.%d.%d beta"), VERSION/10000, (VERSION/100)%100, VERSION%100));35 36     // Change (c) into UTF-8 or ANSI copyright symbol37     wxString str = m_staticTextMain->GetLabel();38@@ -2437,9 +2437,11 @@39         {40             strlcpy(pszPrevTip, strTooltip.c_str(), sizeof(pszPrevTip));41 #ifdef __WXMSW__42-            SetIcon(wxICON(bitcoin), strTooltip);43+            // somehow it'll choose the wrong size and scale it down if44+            // we use the main icon, so we hand it one with only 16x1645+            SetIcon(wxICON(favicon), strTooltip);46 #else47-            SetIcon(bitcoin20_xpm, strTooltip);48+            SetIcon(bitcoin80_xpm, strTooltip);49 #endif50         }51     }52@@ -2540,12 +2542,3 @@53     CreateThread(ThreadDelayedRepaint, NULL);54 }55 56-57-58-59-60-61-62-63-64-

ui.rc (modified)

1--- v0.2.13/ui.rc2+++ v0.3.0/ui.rc3@@ -12,4 +12,5 @@4 addressbook16mask     BITMAP  "rc/addressbook16mask.bmp"5 addressbook20         BITMAP  "rc/addressbook20.bmp"6 addressbook20mask     BITMAP  "rc/addressbook20mask.bmp"7+favicon               ICON    "rc/favicon.ico"8 

uint256.h (modified)

1--- v0.2.13/uint256.h2+++ v0.3.0/uint256.h3@@ -1,4 +1,4 @@4-// Copyright (c) 2009 Satoshi Nakamoto5+// Copyright (c) 2009-2010 Satoshi Nakamoto6 // Distributed under the MIT/X11 software license, see the accompanying7 // file license.txt or http://www.opensource.org/licenses/mit-license.php.8 
0:000:00