mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
b529e79621
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: JSON-RPC: `setchannel` adds a new `ignorefeelimits` parameter to allow peer to set arbitrary commitment transaction fees on a per-channel basis.
73 lines
2.4 KiB
JSON
73 lines
2.4 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",
|
|
"ignore_fee_limits"
|
|
],
|
|
"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)"
|
|
},
|
|
"ignore_fee_limits": {
|
|
"type": "boolean",
|
|
"added": "v23.08",
|
|
"description": "If we are now allowing peer to set feerate on commitment transaction without restriction"
|
|
},
|
|
"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)"
|
|
},
|
|
"warning_htlcmax_too_high": {
|
|
"type": "string",
|
|
"description": "The requested htlcmax was greater than the channel capacity, so we set it to the channel capacity"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|