|
|
@ -2513,6 +2513,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) |
|
|
|
// Ask the first connected node for block updates
|
|
|
|
// Ask the first connected node for block updates
|
|
|
|
static int nAskedForBlocks = 0; |
|
|
|
static int nAskedForBlocks = 0; |
|
|
|
if (!pfrom->fClient && !pfrom->fOneShot && |
|
|
|
if (!pfrom->fClient && !pfrom->fOneShot && |
|
|
|
|
|
|
|
(pfrom->nStartingHeight > (nBestHeight - 144)) && |
|
|
|
(pfrom->nVersion < NOBLKS_VERSION_START || |
|
|
|
(pfrom->nVersion < NOBLKS_VERSION_START || |
|
|
|
pfrom->nVersion >= NOBLKS_VERSION_END) && |
|
|
|
pfrom->nVersion >= NOBLKS_VERSION_END) && |
|
|
|
(nAskedForBlocks < 1 || vNodes.size() <= 1)) |
|
|
|
(nAskedForBlocks < 1 || vNodes.size() <= 1)) |
|
|
|