aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2016-12-31 02:05:15 -0500
committerCory Fields <[email protected]>2017-01-04 10:10:35 -0500
commit56212e20acf1534d443cb910c9bf3a30f84d0f02 (patch)
tree5c67422a02655f9c919571ac7f07823fddc35f97 /src/net.cpp
parentnet: remove redundant max sendbuffer size check (diff)
downloaddiscoin-56212e20acf1534d443cb910c9bf3a30f84d0f02.tar.xz
discoin-56212e20acf1534d443cb910c9bf3a30f84d0f02.zip
net: set message deserialization version when it's actually time to deserialize
We'll soon no longer have access to vRecvMsg, and this is more intuitive anyway.
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 9ce7475bc..6d9971a0f 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -653,7 +653,7 @@ bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes, bool& complete
// get current incomplete message, or create a new one
if (vRecvMsg.empty() ||
vRecvMsg.back().complete())
- vRecvMsg.push_back(CNetMessage(Params().MessageStart(), SER_NETWORK, nRecvVersion));
+ vRecvMsg.push_back(CNetMessage(Params().MessageStart(), SER_NETWORK, INIT_PROTO_VERSION));
CNetMessage& msg = vRecvMsg.back();