diff options
author | Matt Corallo <git@bluematt.me> | 2017-01-14 15:50:28 -0800 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-01-14 16:00:16 -0800 |
commit | 241d8938f4b5de1d2564ec7e064d8b0b8efd84a4 (patch) | |
tree | 92edf50ae5d88e394bc5dbaf998b6ae2a32947f4 | |
parent | f13914a0e9cf533d77dc870719842aa426a7926c (diff) |
Wake message handling thread when we receive a new block
This forces the message handling thread to make another full
iteration of SendMessages prior to going back to sleep, ensuring
we announce the new block to all peers before sleeping.
-rw-r--r-- | src/net_processing.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 59c1d1bf8f..c19bf81577 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -822,6 +822,7 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB } } }); + connman->WakeMessageHandler(); } nTimeBestReceived = GetTime(); |