Handle negative timeout for waitTipChanged()

This commit is contained in:
Sjors Provoost
2025-02-19 15:54:35 +01:00
parent c20a5ce106
commit f9cf8bd0ab
2 changed files with 4 additions and 1 deletions

View File

@@ -93,7 +93,8 @@ public:
*
* @param[in] current_tip block hash of the current chain tip. Function waits
* for the chain tip to differ from this.
* @param[in] timeout how long to wait for a new tip
* @param[in] timeout how long to wait for a new tip (default is forever)
*
* @returns Hash and height of the current chain tip after this call.
*/
virtual BlockRef waitTipChanged(uint256 current_tip, MillisecondsDouble timeout = MillisecondsDouble::max()) = 0;