aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-01-24 10:42:17 -0500
committerGavin Andresen <[email protected]>2011-03-05 17:13:07 -0500
commitcbc920d474b84e8ca339618b1419383000db531f (patch)
tree93dce192d4b7a24046471c3ee1d261205ed09948 /main.cpp
parentMake send/receive limits bigger (10MB each) (diff)
downloaddiscoin-cbc920d474b84e8ca339618b1419383000db531f.tar.xz
discoin-cbc920d474b84e8ca339618b1419383000db531f.zip
shy patch from Hal
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 a47f3a97b..7a718c73d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2366,6 +2366,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);