-
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: add askrene-disable-channel RPC Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
- Loading branch information
1 parent
6f087dd
commit d4cb5b8
Showing
9 changed files
with
218 additions
and
13 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"$schema": "../rpc-schema-draft.json", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"rpc": "askrene-disable-channel", | ||
"title": "Command to disable a channel in a layer (EXPERIMENTAL)", | ||
"description": [ | ||
"WARNING: experimental, so API may change.", | ||
"", | ||
"The **askrene-disable-channel** RPC command tells askrene to disable a channel whenever the given layer is used. This is mainly useful to force the use of alternate paths." | ||
], | ||
"request": { | ||
"required": [ | ||
"layer", | ||
"short_channel_id" | ||
], | ||
"properties": { | ||
"layer": { | ||
"type": "string", | ||
"description": [ | ||
"The name of the layer to apply this change to." | ||
] | ||
}, | ||
"short_channel_id": { | ||
"type": "short_channel_id", | ||
"description": [ | ||
"The channel to disable." | ||
] | ||
}, | ||
"direction": { | ||
"type": "u32", | ||
"description": [ | ||
"The direction of the channel. If the direction is not specified then both directions are disabled." | ||
] | ||
} | ||
} | ||
}, | ||
"response": { | ||
"required": [], | ||
"properties": {} | ||
}, | ||
"see_also": [ | ||
"lightning-getroutes(7)", | ||
"lightning-askrene-create-channel(7)", | ||
"lightning-askrene-inform-channel(7)", | ||
"lightning-askrene-disable-node(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
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
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