aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-04-18 21:33:54 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-09-08 12:24:06 -0400
commitee44fa95761724a83a76dd862a36bd9af0fc021f (patch)
treeea026cedd0635c5d424041536c83f84a3b12ec8a /src/net.h
parent960cf2e4058a9c195bf64e1aecb46024f9ef022a (diff)
downloadbitcoin-ee44fa95761724a83a76dd862a36bd9af0fc021f.tar.xz
net: move messageHandlerCondition to CConnman
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 32668045c5..0e83ff4a0c 100644
--- a/src/net.h
+++ b/src/net.h
@@ -228,6 +228,7 @@ private:
std::vector<CNode*> vNodes;
mutable CCriticalSection cs_vNodes;
std::atomic<NodeId> nLastNodeId;
+ boost::condition_variable messageHandlerCondition;
};
extern std::unique_ptr<CConnman> g_connman;
void MapPort(bool fUseUPnP);
@@ -550,7 +551,7 @@ public:
}
// requires LOCK(cs_vRecvMsg)
- bool ReceiveMsgBytes(const char *pch, unsigned int nBytes);
+ bool ReceiveMsgBytes(const char *pch, unsigned int nBytes, bool& complete);
// requires LOCK(cs_vRecvMsg)
void SetRecvVersion(int nVersionIn)