diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-10-27 20:24:31 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2015-02-25 18:44:49 -0500 |
commit | eec37136fd0f6ab80772380d8f047d98743f31f5 (patch) | |
tree | f2e22ac82464d1d37ec312c1b76ab98cb8a29525 /src/net.cpp | |
parent | 8b298ca7d7540acc19d1df79a5c2af7b5aca8cbe (diff) |
make CMessageHeader a dumb storage class
It shouldn't know or care about bitcoind's chain param selection
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 3c3666615e..36a5b6fb6b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -509,7 +509,7 @@ bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes) // get current incomplete message, or create a new one if (vRecvMsg.empty() || vRecvMsg.back().complete()) - vRecvMsg.push_back(CNetMessage(SER_NETWORK, nRecvVersion)); + vRecvMsg.push_back(CNetMessage(Params().MessageStart(), SER_NETWORK, nRecvVersion)); CNetMessage& msg = vRecvMsg.back(); @@ -1970,7 +1970,7 @@ void CNode::BeginMessage(const char* pszCommand) EXCLUSIVE_LOCK_FUNCTION(cs_vSen { ENTER_CRITICAL_SECTION(cs_vSend); assert(ssSend.size() == 0); - ssSend << CMessageHeader(pszCommand, 0); + ssSend << CMessageHeader(Params().MessageStart(), pszCommand, 0); LogPrint("net", "sending: %s ", SanitizeString(pszCommand)); } |