doc: Updated dev command warning

Changelog-Changed: Documentation: Merged `example_json_request` and `example_json_response` in a single `json_examples` array to maintain the request and its corresponding response together.
This commit is contained in:
ShahanaFarooqui 2024-04-01 10:14:26 -07:00 committed by Rusty Russell
parent 9e782f491b
commit aff8f0ff5e
3 changed files with 10 additions and 0 deletions

View File

@ -8794,6 +8794,8 @@
"title": "Command to remove the DB entries from the database after a close",
"warning": "For advanced users only",
"description": [
"Never use any `dev` command, including this one, unless you know exactly what you are doing; and have checked with a developer that your understanding is correct. They are meant only as a means of last resort and have the potential to mess things up. You have been warned\u2757\ufe0f",
"",
"The **dev-forget-channel** forgets the channel with given details. It will perform additional checks on whether it is safe to forget the channel, and only then remove the channel from the DB. Notice that this command is only available if CLN was started with --developer.",
"",
"Also see https://docs.corelightning.org/docs/faq#how-to-forget-about-a-channel"

View File

@ -93,6 +93,12 @@ Effort has been made to get `lightningd` running on Android, [see issue #3484](h
### How to forget about a channel?
> 🚧
>
> Never use any `dev` command unless you know exactly what you are doing, and have checked with a developer that your understanding is correct. They are meant only as a means of last resort and have the potential to mess things up. You have been warned❗
>
Channels may end up stuck during funding and never confirm on-chain. There is a variety of causes, the most common ones being that the funds have been double-spent, or the funding fee was too low to be confirmed. This is unlikely to happen in normal operation, as CLN tries to use sane defaults and prevents double-spends whenever possible, but using custom feerates or when the bitcoin backend has no good fee estimates it is still possible.
Before forgetting about a channel it is important to ensure that the funding transaction will never be confirmable by double-spending the funds. To do so you have to rescan the UTXOs using

View File

@ -6,6 +6,8 @@
"title": "Command to remove the DB entries from the database after a close",
"warning": "For advanced users only",
"description": [
"Never use any `dev` command, including this one, unless you know exactly what you are doing; and have checked with a developer that your understanding is correct. They are meant only as a means of last resort and have the potential to mess things up. You have been warned❗",
"",
"The **dev-forget-channel** forgets the channel with given details. It will perform additional checks on whether it is safe to forget the channel, and only then remove the channel from the DB. Notice that this command is only available if CLN was started with --developer.",
"",
"Also see https://docs.corelightning.org/docs/faq#how-to-forget-about-a-channel"