aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-06-14 18:07:11 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-06-14 18:07:11 +0000
commit3703150d56ff6ee557ab330e55637c9c23835902 (patch)
treeb3f13dd5416c38c508ee785dd3e543e381cc03a2
parent1bc2f0a37b68aa99e90437105a48c47046b6c0d0 (diff)
parentca39829ecb90e392b9722292739585124ba0d7c1 (diff)
Merge branch '0.4.x' into 0.5.x
Conflicts: doc/release-process.txt src/serialize.h
-rw-r--r--.gitignore1
-rw-r--r--doc/release-process.txt2
-rw-r--r--src/main.h2
-rw-r--r--src/net.cpp2
-rw-r--r--src/script.h2
-rw-r--r--src/serialize.h2
-rw-r--r--src/util.cpp3
7 files changed, 9 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 6ed527d5d4..95152ce4fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
src/*.exe
src/bitcoin
src/bitcoind
+src/test_bitcoin
.*.swp
*.*~*
*.bak
diff --git a/doc/release-process.txt b/doc/release-process.txt
index 2d483d36d7..468d037676 100644
--- a/doc/release-process.txt
+++ b/doc/release-process.txt
@@ -89,6 +89,8 @@
* update wiki download links
+* update wiki changelog: https://en.bitcoin.it/wiki/Changelog
+
* Commit your signature to gitian.sigs:
pushd gitian.sigs
git add ${VERSION}/${SIGNER}
diff --git a/src/main.h b/src/main.h
index 21bb4c8a0b..74bbe2940e 100644
--- a/src/main.h
+++ b/src/main.h
@@ -513,7 +513,7 @@ public:
bool IsStandard() const
{
BOOST_FOREACH(const CTxIn& txin, vin)
- if (!txin.scriptSig.IsPushOnly())
+ if (txin.scriptSig.size() > 200 || !txin.scriptSig.IsPushOnly())
return error("nonstandard txin: %s", txin.scriptSig.ToString().c_str());
BOOST_FOREACH(const CTxOut& txout, vout)
if (!::IsStandard(txout.scriptPubKey))
diff --git a/src/net.cpp b/src/net.cpp
index ebdc1cc149..8384251095 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -914,7 +914,7 @@ void ThreadSocketHandler2(void* parg)
if (nSelect == SOCKET_ERROR)
{
int nErr = WSAGetLastError();
- if (hSocketMax > -1)
+ if (hSocketMax != INVALID_SOCKET)
{
printf("socket select error %d\n", nErr);
for (unsigned int i = 0; i <= hSocketMax; i++)
diff --git a/src/script.h b/src/script.h
index 502bce1e54..8dddb893f4 100644
--- a/src/script.h
+++ b/src/script.h
@@ -623,8 +623,6 @@ public:
bool IsPushOnly() const
{
- if (size() > 200)
- return false;
const_iterator pc = begin();
while (pc < end())
{
diff --git a/src/serialize.h b/src/serialize.h
index b1fabb7a0e..61d80d7050 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -60,7 +60,7 @@ class CDataStream;
class CAutoFile;
static const unsigned int MAX_SIZE = 0x02000000;
-static const int VERSION = 50600;
+static const int VERSION = 50601;
static const char* pszSubVer = "";
static const bool VERSION_IS_BETA = true;
diff --git a/src/util.cpp b/src/util.cpp
index be6267688c..6314b53627 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -22,6 +22,7 @@ namespace boost {
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
#include <boost/foreach.hpp>
+#include <boost/thread.hpp>
using namespace std;
using namespace boost;
@@ -193,6 +194,8 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
if (fileout)
{
static bool fStartedNewLine = true;
+ static boost::mutex mutexDebugLog;
+ boost::mutex::scoped_lock scoped_lock(mutexDebugLog);
// Debug print useful for profiling
if (fLogTimestamps && fStartedNewLine)