aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-12 20:07:49 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-12 20:07:49 -0400
commit8b09cd3a4db2d712e91826d44a0e777478b450c6 (patch)
tree805a27b103f0c4a5da60ac7196bcc13a65930c42 /src/net.h
parentb87c0fc4403040185b625d1b21bbff0cb7c828d7 (diff)
Replace several network protocol version numbers with named constants
stored in version.h. Also, a minor CAddress code reformat while we're in there, fixing some incorrect indentation.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 3c84650c27..bb2d455d90 100644
--- a/src/net.h
+++ b/src/net.h
@@ -163,8 +163,8 @@ public:
hSocket = hSocketIn;
vSend.SetType(SER_NETWORK);
vRecv.SetType(SER_NETWORK);
- vSend.SetVersion(209);
- vRecv.SetVersion(209);
+ vSend.SetVersion(MIN_PROTO_VERSION);
+ vRecv.SetVersion(MIN_PROTO_VERSION);
nLastSend = 0;
nLastRecv = 0;
nLastSendEmpty = GetTime();