mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Merge #9561: Wake message handling thread when we receive a new block
241d893Wake message handling thread when we receive a new block (Matt Corallo)f13914aMake WakeMessageHandler public (Matt Corallo)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -827,6 +827,7 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB
|
||||
}
|
||||
}
|
||||
});
|
||||
connman->WakeMessageHandler();
|
||||
}
|
||||
|
||||
nTimeBestReceived = GetTime();
|
||||
|
||||
Reference in New Issue
Block a user