core-lightning/doc/schemas/setconfig.schema.json
Rusty Russell 6546be9757 lightningd: setconfig command.
Currently only implemented for min-capacity-sat.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: new command `setconfig` allows a limited number of configuration settings to be changed without restart.
2023-06-20 20:08:25 +09:30

63 lines
1.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"added": "v23.08",
"required": [
"config"
],
"properties": {
"config": {
"type": "object",
"description": "config settings after completion",
"additionalProperties": false,
"required": [
"config",
"source",
"dynamic"
],
"properties": {
"config": {
"type": "string",
"description": "name of the config variable which was set"
},
"source": {
"type": "string",
"description": "source of configuration setting (`file`:`linenum`)"
},
"plugin": {
"type": "string",
"description": "the plugin this configuration setting is for"
},
"dynamic": {
"type": "boolean",
"enum": [
true
],
"description": "whether this option is settable via setconfig"
},
"set": {
"type": "boolean",
"description": "for simple flag options"
},
"value_str": {
"type": "string",
"description": "for string options"
},
"value_msat": {
"type": "msat",
"description": "for msat options"
},
"value_int": {
"type": "integer",
"description": "for integer options"
},
"value_bool": {
"type": "boolean",
"description": "for boolean options"
}
}
}
}
}