aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2011-09-03 09:09:34 +0200
committerWladimir J. van der Laan <[email protected]>2011-09-03 09:09:34 +0200
commit0a70a3f4d88ad8e4ab689bacff4eda0cdfa88e65 (patch)
tree57a05ca259341308e9f97404d4941d1319714585 /src/main.cpp
parentsupport USE_UPNP setting (diff)
parentBumped version numbers to 0.4.0rc1 (diff)
downloaddiscoin-0a70a3f4d88ad8e4ab689bacff4eda0cdfa88e65.tar.xz
discoin-0a70a3f4d88ad8e4ab689bacff4eda0cdfa88e65.zip
Merge branch 'master' of https://github.com/bitcoin/bitcoin
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 59a698428..d1fbbb11f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1830,7 +1830,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
// Ask the first connected node for block updates
static int nAskedForBlocks;
- if (!pfrom->fClient && (nAskedForBlocks < 1 || vNodes.size() <= 1))
+ if (!pfrom->fClient &&
+ (pfrom->nVersion < 32000 || pfrom->nVersion >= 32400) &&
+ (nAskedForBlocks < 1 || vNodes.size() <= 1))
{
nAskedForBlocks++;
pfrom->PushGetBlocks(pindexBest, uint256(0));