aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-03-14 09:15:06 -0400
committerGavin Andresen <gavinandresen@gmail.com>2011-03-14 09:15:06 -0400
commit27b7f3b43a3868cd4d4f97e03c35074c2ef12349 (patch)
treea39d6207cb612126097f98419dea51e580f5ba35 /main.cpp
parent4b88647966a1144b5e5532fef50bbf34f9402e71 (diff)
parentcbc920d474b84e8ca339618b1419383000db531f (diff)
Merge branch 'shy'
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 298e76ecce..bfc45af28e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2396,6 +2396,10 @@ bool ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
return true;
}
+ // Be shy and don't send version until we hear
+ if (pfrom->fInbound)
+ pfrom->PushVersion();
+
pfrom->fClient = !(pfrom->nServices & NODE_NETWORK);
AddTimeData(pfrom->addr.ip, nTime);