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:
Sjors Provoost
2024-12-06 14:24:21 +07:00
parent 2eccb8bc5e
commit 37946c0aaf
5 changed files with 26 additions and 8 deletions

View File

@@ -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.