Browse Source

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)
0.14
Pieter Wuille 8 years ago
parent
commit
6696b4635c
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  1. 4
      src/net.h
  2. 1
      src/net_processing.cpp

4
src/net.h

@ -328,6 +328,8 @@ public:
CSipHasher GetDeterministicRandomizer(uint64_t id); CSipHasher GetDeterministicRandomizer(uint64_t id);
unsigned int GetReceiveFloodSize() const; unsigned int GetReceiveFloodSize() const;
void WakeMessageHandler();
private: private:
struct ListenSocket { struct ListenSocket {
SOCKET socket; SOCKET socket;
@ -344,8 +346,6 @@ private:
void ThreadSocketHandler(); void ThreadSocketHandler();
void ThreadDNSAddressSeed(); void ThreadDNSAddressSeed();
void WakeMessageHandler();
uint64_t CalculateKeyedNetGroup(const CAddress& ad); uint64_t CalculateKeyedNetGroup(const CAddress& ad);
CNode* FindNode(const CNetAddr& ip); CNode* FindNode(const CNetAddr& ip);

1
src/net_processing.cpp

@ -827,6 +827,7 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB
} }
} }
}); });
connman->WakeMessageHandler();
} }
nTimeBestReceived = GetTime(); nTimeBestReceived = GetTime();

Loading…
Cancel
Save