mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-25 05:20:01 +01:00
Set notifications m_tip_block in LoadChainTip()
Ensure KernelNotifications m_tip_block is set even if no new block arrives. Additionally, have node init always wait for this to happen.
This commit is contained in:
@@ -75,8 +75,8 @@ public:
|
||||
virtual std::optional<BlockRef> getTip() = 0;
|
||||
|
||||
/**
|
||||
* Waits for the connected tip to change. If the tip was not connected on
|
||||
* startup, this will wait.
|
||||
* Waits for the connected tip to change. During node initialization, this will
|
||||
* wait until the tip is connected.
|
||||
*
|
||||
* @param[in] current_tip block hash of the current chain tip. Function waits
|
||||
* for the chain tip to differ from this.
|
||||
|
||||
Reference in New Issue
Block a user