Versions 0.3.20 THROUGH 0.3.23 have trouble with blockchain downloads; avoid them
authorGavin Andresen <gavinandresen@gmail.com>
Fri, 2 Sep 2011 16:56:10 +0000 (12:56 -0400)
committerGavin Andresen <gavinandresen@gmail.com>
Fri, 2 Sep 2011 16:56:10 +0000 (12:56 -0400)
src/main.cpp

index 7230906..cbcfef0 100644 (file)
@@ -1823,7 +1823,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
 
         // Ask the first connected node for block updates
         static int nAskedForBlocks;
-        if (!pfrom->fClient && pfrom->nVersion != 32300 && (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));