mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-11 17:52:48 +01:00
Merge bitcoin/bitcoin#31325: Make m_tip_block std::optional
81cea5d4eeEnsure m_tip_block is never ZERO (Sjors Provoost)e058544d0eMake m_tip_block an std::optional (Sjors Provoost) Pull request description: Suggested in https://github.com/bitcoin/bitcoin/pull/31297#discussion_r1844244309 ACKs for top commit: fjahr: re-ACK81cea5d4eetdb3: code review re ACK81cea5d4eel0rinc: ACK81cea5d4eeTree-SHA512: 31a75ba29e3d567bab32e4e7925a419d9d7a4d2d85ed1c1012116d8d22adc14d31d5b4ce5f6c499c994188dcd26a01cced05be74f94c892fc90ae17a6783a472
This commit is contained in:
@@ -1807,7 +1807,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
{
|
||||
WAIT_LOCK(kernel_notifications.m_tip_block_mutex, lock);
|
||||
kernel_notifications.m_tip_block_cv.wait(lock, [&]() EXCLUSIVE_LOCKS_REQUIRED(kernel_notifications.m_tip_block_mutex) {
|
||||
return !kernel_notifications.m_tip_block.IsNull() || ShutdownRequested(node);
|
||||
return kernel_notifications.TipBlock() || ShutdownRequested(node);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user