aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-10-28 16:57:24 -0700
committerPieter Wuille <[email protected]>2016-11-07 13:49:11 -0800
commitfad9b66504f176ed3624515f3bf4d428cf687607 (patch)
treedbeedee85746dc16488f3ff5a4ab76bbcd083be0 /src/net.h
parentMake streams' read and write return void (diff)
downloaddiscoin-fad9b66504f176ed3624515f3bf4d428cf687607.tar.xz
discoin-fad9b66504f176ed3624515f3bf4d428cf687607.zip
Make nType and nVersion private and sometimes const
Make the various stream implementations' nType and nVersion private and const (except in CDataStream where we really need a setter).
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 22b80fc50..4ceeec2f0 100644
--- a/src/net.h
+++ b/src/net.h
@@ -140,7 +140,7 @@ public:
void PushMessageWithVersionAndFlag(CNode* pnode, int nVersion, int flag, const std::string& sCommand, Args&&... args)
{
auto msg(BeginMessage(pnode, nVersion, flag, sCommand));
- ::SerializeMany(msg, msg.nType, msg.nVersion, std::forward<Args>(args)...);
+ ::SerializeMany(msg, msg.GetType(), msg.GetVersion(), std::forward<Args>(args)...);
EndMessage(msg);
PushMessage(pnode, msg, sCommand);
}