aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2017-01-16 19:47:35 -0800
committerPieter Wuille <[email protected]>2017-01-16 19:54:52 -0800
commit6696b4635ceb9b47aaa63244bff9032fa7b08354 (patch)
tree1a4b948981bfa396b29b816535aa1469fda73e72 /src
parentMerge #9484: Introduce assumevalid setting to skip validation presumed valid ... (diff)
parentWake message handling thread when we receive a new block (diff)
downloaddiscoin-6696b4635ceb9b47aaa63244bff9032fa7b08354.tar.xz
discoin-6696b4635ceb9b47aaa63244bff9032fa7b08354.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/net.h4
-rw-r--r--src/net_processing.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 2baf82702..a9da38146 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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 945a97909..03568283f 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();