-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog-EXPERIMENTAL: askrene: modify the RPC call create-channel to be able to add channels in batches. Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
- Loading branch information
Showing
6 changed files
with
216 additions
and
163 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"$schema": "../rpc-schema-draft.json", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"rpc": "askrene-create-channels", | ||
"title": "Command to add channels to layer (EXPERIMENTAL)", | ||
"description": [ | ||
"WARNING: experimental, so API may change.", | ||
"", | ||
"The **askrene-create-channels** RPC command tells askrene to populate one direction of a list of channels in the given layer. If the channels already exist, they will be overridden. If the layer does not exist, it will be created." | ||
], | ||
"request": { | ||
"required": [ | ||
"layer", | ||
"channels" | ||
], | ||
"properties": { | ||
"layer": { | ||
"type": "string", | ||
"description": [ | ||
"The name of the layer to apply this change to." | ||
] | ||
}, | ||
"channels": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"required": [ | ||
"source", | ||
"destination", | ||
"short_channel_id", | ||
"capacity_msat", | ||
"htlc_min", | ||
"htlc_max", | ||
"base_fee", | ||
"proportional_fee", | ||
"delay" | ||
], | ||
"properties": { | ||
"source": { | ||
"type": "pubkey", | ||
"description": [ | ||
"The source node id for the channel." | ||
] | ||
}, | ||
"destination": { | ||
"type": "pubkey", | ||
"description": [ | ||
"The destination node id for the channel." | ||
] | ||
}, | ||
"short_channel_id": { | ||
"type": "short_channel_id", | ||
"description": [ | ||
"The short channel id for the channel. If a channel with this short channel id already exists in *layer*, the *source*, *destination* and *capacity_msat* must be the same." | ||
] | ||
}, | ||
"capacity_msat": { | ||
"type": "msat", | ||
"description": [ | ||
"The capacity (onchain size) of the channel." | ||
] | ||
}, | ||
"htlc_mininum_msat": { | ||
"type": "msat", | ||
"description": [ | ||
"The minimum value allowed in this direction." | ||
] | ||
}, | ||
"htlc_maximum_msat": { | ||
"type": "msat", | ||
"description": [ | ||
"The maximum value allowed in this direction." | ||
] | ||
}, | ||
"fee_base_msat": { | ||
"type": "msat", | ||
"description": [ | ||
"The base fee to apply to use the channel in this direction." | ||
] | ||
}, | ||
"fee_proportional_millionths": { | ||
"type": "u32", | ||
"description": [ | ||
"The proportional fee (in parts per million) to apply to use the channel in this direction." | ||
] | ||
}, | ||
"delay": { | ||
"type": "u16", | ||
"description": [ | ||
"The CLTV delay required for this direction." | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"response": { | ||
"required": [], | ||
"properties": {} | ||
}, | ||
"see_also": [ | ||
"lightning-getroutes(7)", | ||
"lightning-askrene-disable-node(7)", | ||
"lightning-askrene-inform-channel(7)", | ||
"lightning-askrene-listlayers(7)", | ||
"lightning-askrene-age(7)" | ||
], | ||
"author": [ | ||
"Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible." | ||
], | ||
"resources": [ | ||
"Main web site: <https://github.com/ElementsProject/lightning>" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.