mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 15:20:24 +01:00
Add TODO noting confusion over |20 (channel_disabled) definition
This commit is contained in:
parent
4839ef7b83
commit
7cfb09c797
1 changed files with 5 additions and 0 deletions
|
@ -2087,6 +2087,11 @@ impl ChannelManager {
|
|||
channel_id: msg.channel_id,
|
||||
htlc_id: msg.htlc_id,
|
||||
reason: if let Ok(update) = chan_update {
|
||||
// TODO: Note that |20 is defined as "channel FROM the processing
|
||||
// node has been disabled" (emphasis mine), which seems to imply
|
||||
// that we can't return |20 for an inbound channel being disabled.
|
||||
// This probably needs a spec update but should definitely be
|
||||
// allowed.
|
||||
ChannelManager::build_first_hop_failure_packet(&incoming_shared_secret, 0x1000|20, &{
|
||||
let mut res = Vec::with_capacity(8 + 128);
|
||||
res.extend_from_slice(&byte_utils::be16_to_array(update.contents.flags));
|
||||
|
|
Loading…
Add table
Reference in a new issue