2022-03-21 01:58:28 +01:00
|
|
|
{
|
|
|
|
"$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",
|
2022-03-21 01:58:54 +01:00
|
|
|
"minimum_htlc_out_msat",
|
2022-03-21 01:58:28 +01:00
|
|
|
"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)"
|
|
|
|
},
|
2022-03-21 01:58:54 +01:00
|
|
|
"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"
|
|
|
|
},
|
2022-03-21 01:58:28 +01:00
|
|
|
"maximum_htlc_out_msat": {
|
|
|
|
"type": "msat",
|
|
|
|
"description": "The resulting htlcmax we will advertize (the BOLT #7 name is htlc_maximum_msat)"
|
2022-03-21 01:58:57 +01:00
|
|
|
},
|
|
|
|
"warning_htlcmax_too_high": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The requested htlcmax was greater than the channel capacity, so we set it to the channel capacity"
|
2022-03-21 01:58:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|