Browse Source

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.
0.14
Matt Corallo 8 years ago
parent
commit
241d8938f4
  1. 1
      src/net_processing.cpp

1
src/net_processing.cpp

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

Loading…
Cancel
Save