LIGHTNING-ASKRENE-DISABLE-NODE(7)
π LIGHTNING-ASKRENE-DISABLE-NODE(7)
okay so bestie, this is the manual page for lightning-askrene-disable-node β yes it's a mouthful, yes it's iconic, and yes i'm gonna walk you through it π
β¨ NAME β¨
askrene-disable-node β the command that disables all channels to/from a node in a layer. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
askrene-disable-node layer node
literally just two little args, we been knew π«Ά
π¦ DESCRIPTION π¦
okay so first things first: this command was added in v24.11 β (yes, we're keeping receipts).
The askrene-disable-node RPC command tells askrene to disable all channels connected to a node whenever the given layer is used. That's the whole thing. It's giving "nuke every channel touching this node, but only inside this one layer" πβ¨
Why would you even? Mainly to force the use of alternate paths π₯. Like yeah, you could disable individual channels with askrene-create-channel or askrene-inform-channel, but bestieβ¦ that would be racy if new channels appeared ππ and we do not do race conditions in this house.
The args:
layer(string) β the name of the layer to apply this change to. pick your layer, own your layer πnode(pubkey) β the node to disable. and here's the cute part: it does not need to exist π no cap, you can disable a node that isn't even real yet. ghost node. spectral node. main character energy.
π§ RETURN VALUE π§
On success, you get an empty object back. that's it.
{}
empty. void. nothing. and honestly? slay. no clutter, no notes π
π₯ AUTHOR π₯
Rusty Russell <rusty@rustcorp.com.au> is mainly responsible. legend behavior, fr fr π
π SEE ALSO π
go read these next, i'm obsessed:
lightning-getroutes(7)lightning-askrene-create-channel(7)lightning-askrene-inform-channel(7)lightning-askrene-listlayers(7)lightning-askrene-age(7)
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning β go touch grass in the repo, it's fine πΈ
π EXAMPLES π
Example 1: the whole pipeline π
Request:
$ lightning-cli askrene-disable-node -k "layer"="test_layers" "node"="nodeid010101010101010101010101010101010101010101010101010101010101"
{
"id": "example:askrene-disable-node#1",
"method": "askrene-disable-node",
"params": {
"layer": "test_layers",
"node": "nodeid010101010101010101010101010101010101010101010101010101010101"
}
}
Response:
{}
see? empty object. told you. ate and left no crumbs π β¨
π«Ά reminder bestie: node doesn't have to exist, and that's a feature, not a bug.
that's the whole page, mwah π this was Core Lightning v26.06.9, LIGHTNING-ASKRENE-DISABLE-NODE(7) β go disable some nodes, love u, bye π¦π
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms