diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2017-01-16 19:47:35 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2017-01-16 19:54:52 -0800 |
commit | 6696b4635ceb9b47aaa63244bff9032fa7b08354 (patch) | |
tree | 1a4b948981bfa396b29b816535aa1469fda73e72 | |
parent | 812714fd80e96e28cd288c553c83838cecbfc2d9 (diff) | |
parent | 241d8938f4b5de1d2564ec7e064d8b0b8efd84a4 (diff) |
Merge #9561: Wake message handling thread when we receive a new block
241d893 Wake message handling thread when we receive a new block (Matt Corallo)
f13914a Make WakeMessageHandler public (Matt Corallo)
-rw-r--r-- | src/net.h | 4 | ||||
-rw-r--r-- | src/net_processing.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
@@ -328,6 +328,8 @@ public: CSipHasher GetDeterministicRandomizer(uint64_t id); unsigned int GetReceiveFloodSize() const; + + void WakeMessageHandler(); private: struct ListenSocket { SOCKET socket; @@ -344,8 +346,6 @@ private: void ThreadSocketHandler(); void ThreadDNSAddressSeed(); - void WakeMessageHandler(); - uint64_t CalculateKeyedNetGroup(const CAddress& ad); CNode* FindNode(const CNetAddr& ip); diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 945a97909d..03568283fb 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -827,6 +827,7 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB } } }); + connman->WakeMessageHandler(); } nTimeBestReceived = GetTime(); |