We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4839ef7 commit 7cfb09cCopy full SHA for 7cfb09c
src/ln/channelmanager.rs
@@ -2087,6 +2087,11 @@ impl ChannelManager {
2087
channel_id: msg.channel_id,
2088
htlc_id: msg.htlc_id,
2089
reason: if let Ok(update) = chan_update {
2090
+ // TODO: Note that |20 is defined as "channel FROM the processing
2091
+ // node has been disabled" (emphasis mine), which seems to imply
2092
+ // that we can't return |20 for an inbound channel being disabled.
2093
+ // This probably needs a spec update but should definitely be
2094
+ // allowed.
2095
ChannelManager::build_first_hop_failure_packet(&incoming_shared_secret, 0x1000|20, &{
2096
let mut res = Vec::with_capacity(8 + 128);
2097
res.extend_from_slice(&byte_utils::be16_to_array(update.contents.flags));
0 commit comments