commando-rune: show warning when creating runes with no restrictions

Changelog-Added: Show warning when creating runes with no restrictions
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-07-28 07:05:51 -07:00
committed by neil saitug
parent 78804d9ea8
commit 10d66c25c4
3 changed files with 12 additions and 1 deletions

View File

@@ -193,6 +193,9 @@ On success, an object is returned, containing:
- **rune** (string): the resulting rune
- **unique_id** (string): the id of this rune: this is set at creation and cannot be changed (even as restrictions are added)
The following warnings may also be returned:
- **warning_unrestricted_rune**: A warning shown when runes are created with powers that could drain your node
[comment]: # (GENERATE-FROM-SCHEMA-END)
AUTHOR
@@ -214,4 +217,4 @@ RESOURCES
Main web site: <https://github.com/ElementsProject/lightning>
[comment]: # ( SHA256STAMP:598337212d2e8a6833698e931f838d8cb424c353af4d7adf6891803ff0ee604b)
[comment]: # ( SHA256STAMP:34c6d5222fee79f4648be4a717041d32004b5bb3644364dc6569b87b16ed2ebe)

View File

@@ -14,6 +14,10 @@
"unique_id": {
"type": "string",
"description": "the id of this rune: this is set at creation and cannot be changed (even as restrictions are added)"
},
"warning_unrestricted_rune": {
"type": "string",
"description": "A warning shown when runes are created with powers that could drain your node"
}
}
}