2019-12-26 11:19:09 +01:00
|
|
|
lightning-waitblockheight -- Command for waiting for blocks on the blockchain
|
|
|
|
=============================================================================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**waitblockheight** *blockheight* [*timeout*]
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **waitblockheight** RPC command waits until the blockchain
|
|
|
|
has reached the specified *blockheight*.
|
|
|
|
It will only wait up to *timeout* seconds (default 60).
|
|
|
|
|
|
|
|
If the *blockheight* is a present or past block height, then this
|
|
|
|
command returns immediately.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
- **blockheight** (u32): The current block height (>= *blockheight* parameter)
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
If *timeout* seconds is reached without the specified blockheight
|
2021-01-06 16:22:34 +01:00
|
|
|
being reached, this command will fail with a code of `2000`.
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
ZmnSCPxj <<ZmnSCPxj@protonmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2022-07-13 17:45:39 +02:00
|
|
|
[comment]: # ( SHA256STAMP:c0440c779f4274b2e2bf4c9e5889a3ef9855c9e9a698d5a50dd8d80eb35c0683)
|