core-lightning/doc/schemas/setchannel.schema.json
Rusty Russell 999c734bb5 setchannel: add minhtlc
Suggested by @m-schmook, I realized that if we append it later I'll
never get it right: I expect parameters min and max, not max and min!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Protocol: you can now alter the `htlc_minimum_msat` and `htlc_maximum_msat` your node advertizes.
2022-03-22 18:45:41 +10:30

63 lines
1.9 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"channels"
],
"properties": {
"channels": {
"type": "array",
"description": "channel(s) set, and their resulting configuration",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"peer_id",
"channel_id",
"fee_base_msat",
"fee_proportional_millionths",
"minimum_htlc_out_msat",
"maximum_htlc_out_msat"
],
"properties": {
"peer_id": {
"type": "pubkey",
"description": "The node_id of the peer"
},
"channel_id": {
"type": "hex",
"description": "The channel_id of the channel",
"minLength": 64,
"maxLength": 64
},
"short_channel_id": {
"type": "short_channel_id",
"description": "the short_channel_id (if locked in)"
},
"fee_base_msat": {
"type": "msat",
"description": "The resulting feebase (this is the BOLT #7 name)"
},
"fee_proportional_millionths": {
"type": "u32",
"description": "The resulting feeppm (this is the BOLT #7 name)"
},
"minimum_htlc_out_msat": {
"type": "msat",
"description": "The resulting htlcmin we will advertize (the BOLT #7 name is htlc_minimum_msat)"
},
"warning_htlcmin_too_low": {
"type": "string",
"description": "The requested htlcmin was too low for this peer, so we set it to the minimum they will allow"
},
"maximum_htlc_out_msat": {
"type": "msat",
"description": "The resulting htlcmax we will advertize (the BOLT #7 name is htlc_maximum_msat)"
}
}
}
}
}
}