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.3.18 → v0.3.19

9 files · +50 · −26 · fc73ad644 · 2010-12-13 · s_nakamoto

Release commit message: -- version 0.3.19 release

v0.3.19. Previous diff: v0.3.17 → v0.3.18. Next: v0.3.19 → r202.

build-osx.txt (modified)

1--- v0.3.18/build-osx.txt2+++ v0.3.19/build-osx.txt3@@ -1,4 +1,4 @@4-Copyright (c) 2009-2010 Satoshi Nakamoto5+Copyright (c) 2010 Laszlo Hanyecz6 Distributed under the MIT/X11 software license, see the accompanying7 file license.txt or http://www.opensource.org/licenses/mit-license.php.8 This product includes software developed by the OpenSSL Project for use in

license.txt (modified)

1--- v0.3.18/license.txt2+++ v0.3.19/license.txt3@@ -1,4 +1,4 @@4-Copyright (c) 2009-2010 Satoshi Nakamoto5+Copyright (c) 2009-2010 Bitcoin Developers6 7 Permission is hereby granted, free of charge, to any person obtaining a copy8 of this software and associated documentation files (the "Software"), to deal

main.cpp (modified)

1--- v0.3.18/main.cpp2+++ v0.3.19/main.cpp3@@ -571,9 +571,14 @@4     if ((int64)nLockTime > INT_MAX)5         return error("AcceptToMemoryPool() : not accepting nLockTime beyond 2038 yet");6 7+    // Safety limits8+    unsigned int nSize = ::GetSerializeSize(*this, SER_NETWORK);9+    if (GetSigOpCount() > 2 || nSize < 100)10+        return error("AcceptToMemoryPool() : nonstandard transaction");11+12     // Rather not work on nonstandard transactions13-    if (!IsStandard() || GetSigOpCount() > 2 || ::GetSerializeSize(*this, SER_NETWORK) < 100)14-        return error("AcceptToMemoryPool() : nonstandard transaction");15+    if (!IsStandard())16+        return error("AcceptToMemoryPool() : nonstandard transaction type");17 18     // Do we already have it?19     uint256 hash = GetHash();20@@ -612,14 +617,36 @@21         }22     }23 24-    // Check against previous transactions25-    map<uint256, CTxIndex> mapUnused;26-    int64 nFees = 0;27-    if (fCheckInputs && !ConnectInputs(txdb, mapUnused, CDiskTxPos(1,1,1), pindexBest, nFees, false, false))28-    {29-        if (pfMissingInputs)30-            *pfMissingInputs = true;31-        return error("AcceptToMemoryPool() : ConnectInputs failed %s", hash.ToString().substr(0,10).c_str());32+    if (fCheckInputs)33+    {34+        // Check against previous transactions35+        map<uint256, CTxIndex> mapUnused;36+        int64 nFees = 0;37+        if (!ConnectInputs(txdb, mapUnused, CDiskTxPos(1,1,1), pindexBest, nFees, false, false))38+        {39+            if (pfMissingInputs)40+                *pfMissingInputs = true;41+            return error("AcceptToMemoryPool() : ConnectInputs failed %s", hash.ToString().substr(0,10).c_str());42+        }43+44+        // Don't accept it if it can't get into a block45+        if (nFees < GetMinFee(1000))46+            return error("AcceptToMemoryPool() : not enough fees");47+48+        // Limit free transactions per 10 minutes49+        if (nFees < CENT && GetBoolArg("-limitfreerelay"))50+        {51+            static int64 nNextReset;52+            static int64 nFreeCount;53+            if (GetTime() > nNextReset)54+            {55+                nNextReset = GetTime() + 10 * 60;56+                nFreeCount = 0;57+            }58+            if (nFreeCount > 150000 && !IsFromMe())59+                return error("AcceptToMemoryPool() : free transaction rejected by rate limiter");60+            nFreeCount += nSize;61+        }62     }63 64     // Store transaction in memory65@@ -1926,7 +1953,6 @@66             {67                 nPriority = alert.nPriority;68                 strStatusBar = alert.strStatusBar;69-                strRPC = alert.strRPCError;70             }71         }72     }

main.h (modified)

1--- v0.3.18/main.h2+++ v0.3.19/main.h3@@ -1754,7 +1754,7 @@4     // Actions5     string strComment;6     string strStatusBar;7-    string strRPCError;8+    string strReserved;9 10     IMPLEMENT_SERIALIZE11     (12@@ -1772,7 +1772,7 @@13 14         READWRITE(strComment);15         READWRITE(strStatusBar);16-        READWRITE(strRPCError);17+        READWRITE(strReserved);18     )19 20     void SetNull()21@@ -1790,7 +1790,7 @@22 23         strComment.clear();24         strStatusBar.clear();25-        strRPCError.clear();26+        strReserved.clear();27     }28 29     string ToString() const30@@ -1815,7 +1815,6 @@31                 "    nPriority    = %d\n"32                 "    strComment   = \"%s\"\n"33                 "    strStatusBar = \"%s\"\n"34-                "    strRPCError  = \"%s\"\n"35                 ")\n",36             nVersion,37             nRelayUntil,38@@ -1828,8 +1827,7 @@39             strSetSubVer.c_str(),40             nPriority,41             strComment.c_str(),42-            strStatusBar.c_str(),43-            strRPCError.c_str());44+            strStatusBar.c_str());45     }46 47     void print() const

makefile.osx (modified)

1--- v0.3.18/makefile.osx2+++ v0.3.19/makefile.osx3@@ -1,4 +1,4 @@4-# Copyright (c) 2009-2010 Satoshi Nakamoto5+# Copyright (c) 2010 Laszlo Hanyecz6 # Distributed under the MIT/X11 software license, see the accompanying7 # file license.txt or http://www.opensource.org/licenses/mit-license.php.8 

serialize.h (modified)

1--- v0.3.18/serialize.h2+++ v0.3.19/serialize.h3@@ -25,7 +25,7 @@4 class CAutoFile;5 static const unsigned int MAX_SIZE = 0x02000000;6 7-static const int VERSION = 31800;8+static const int VERSION = 31900;9 static const char* pszSubVer = "";10 11 

setup.nsi (modified)

1--- v0.3.18/setup.nsi2+++ v0.3.19/setup.nsi3@@ -7,7 +7,7 @@4 5 # General Symbol Definitions6 !define REGKEY "SOFTWARE\$(^Name)"7-!define VERSION 0.3.188+!define VERSION 0.3.199 !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.3.18-win32-setup.exe17+OutFile bitcoin-0.3.19-win32-setup.exe18 InstallDir $PROGRAMFILES\Bitcoin19 CRCCheck on20 XPStyle on21 ShowInstDetails show22-VIProductVersion 0.3.18.023+VIProductVersion 0.3.19.024 VIAddVersionKey ProductName Bitcoin25 VIAddVersionKey ProductVersion "${VERSION}"26 VIAddVersionKey CompanyName "${COMPANY}"

ui.cpp (modified)

1--- v0.3.18/ui.cpp2+++ v0.3.19/ui.cpp3@@ -1796,7 +1796,7 @@4 5 CAboutDialog::CAboutDialog(wxWindow* parent) : CAboutDialogBase(parent)6 {7-    m_staticTextVersion->SetLabel(strprintf(_("version %s%s beta"), FormatVersion(VERSION).c_str(), pszSubVer));8+    m_staticTextVersion->SetLabel(strprintf(_("version %s%s BETA"), FormatVersion(VERSION).c_str(), pszSubVer));9 10     // Change (c) into UTF-8 or ANSI copyright symbol11     wxString str = m_staticTextMain->GetLabel();

uibase.cpp (modified)

1--- v0.3.18/uibase.cpp2+++ v0.3.19/uibase.cpp3@@ -551,7 +551,7 @@4 	5 	bSizer631->Add( 0, 4, 0, wxEXPAND, 5 );6 	7-	m_staticTextMain = new wxStaticText( this, wxID_ANY, _("Copyright (c) 2009-2010 Satoshi Nakamoto.\n\nThis is experimental software.\n\nDistributed under the MIT/X11 software license, see the accompanying file \nlicense.txt or http://www.opensource.org/licenses/mit-license.php.\n\nThis product includes software developed by the OpenSSL Project for use in the \nOpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \nEric Young (eay@cryptsoft.com)."), wxDefaultPosition, wxDefaultSize, 0 );8+	m_staticTextMain = new wxStaticText( this, wxID_ANY, _("Copyright (c) 2009-2010 Bitcoin Developers\n\nThis is experimental software.\n\nDistributed under the MIT/X11 software license, see the accompanying file \nlicense.txt or http://www.opensource.org/licenses/mit-license.php.\n\nThis product includes software developed by the OpenSSL Project for use in the \nOpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \nEric Young (eay@cryptsoft.com)."), wxDefaultPosition, wxDefaultSize, 0 );9 	m_staticTextMain->Wrap( -1 );10 	bSizer631->Add( m_staticTextMain, 0, wxALL, 5 );11 	
0:000:00