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.
Wake message handling thread when we receive a new block #9561
pull TheBlueMatt wants to merge 2 commits into bitcoin:master from TheBlueMatt:2017-01-wakeup-on-new-block changing 2 files +3 −2-
TheBlueMatt commented at 11:51 PM on January 14, 2017: member
-
Make WakeMessageHandler public f13914a0e9
-
241d8938f4
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.
- TheBlueMatt force-pushed on Jan 15, 2017
-
TheBlueMatt commented at 12:03 AM on January 15, 2017: member
Should be up to a min(closest peer RTT, 100ms) decrease in block announce latency for non-HB-compact peers, especially if combined with #9535.
-
morcos commented at 12:16 AM on January 15, 2017: member
tested ACK 241d893
- fanquake added the label P2P on Jan 15, 2017
-
cdecker commented at 10:21 AM on January 16, 2017: contributor
Tested ACK 241d8938f4b5de1d2564ec7e064d8b0b8efd84a4
-
sipa commented at 3:47 AM on January 17, 2017: member
utACK 241d8938f4b5de1d2564ec7e064d8b0b8efd84a4
- sipa merged this on Jan 17, 2017
- sipa closed this on Jan 17, 2017
- sipa referenced this in commit 6696b4635c on Jan 17, 2017
- codablock referenced this in commit aab832967d on Jan 19, 2018
- codablock referenced this in commit 288dcbd76f on Jan 20, 2018
- codablock referenced this in commit 3bd155bd5c on Jan 21, 2018
- andvgal referenced this in commit b501910d6d on Jan 6, 2019
- CryptoCentric referenced this in commit 4eaf7b42d5 on Feb 27, 2019
- CryptoCentric referenced this in commit e11d1ae195 on Feb 27, 2019
- MarcoFalke locked this on Sep 8, 2021