Skip to content

Commit 241d893

Browse files
committed
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.
1 parent f13914a commit 241d893

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB
822822
}
823823
}
824824
});
825+
connman->WakeMessageHandler();
825826
}
826827

827828
nTimeBestReceived = GetTime();

0 commit comments

Comments
 (0)