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.
This commit is contained in:
Matt Corallo 2017-01-14 15:50:28 -08:00
parent f13914a0e9
commit 241d8938f4

View file

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