File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2039,7 +2039,12 @@ impl ChannelManager {
2039
2039
channel_id : msg. channel_id ,
2040
2040
htlc_id : msg. htlc_id ,
2041
2041
reason : if let Ok ( update) = chan_update {
2042
- ChannelManager :: build_first_hop_failure_packet ( & incoming_shared_secret, 0x1000 |20 , & update. encode_with_len ( ) [ ..] )
2042
+ ChannelManager :: build_first_hop_failure_packet ( & incoming_shared_secret, 0x1000 |20 , & {
2043
+ let mut res = Vec :: with_capacity ( 8 + 128 ) ;
2044
+ res. extend_from_slice ( & byte_utils:: be16_to_array ( update. contents . flags ) ) ;
2045
+ res. extend_from_slice ( & update. encode_with_len ( ) [ ..] ) ;
2046
+ res
2047
+ } [ ..] )
2043
2048
} else {
2044
2049
// This can only happen if the channel isn't in the fully-funded
2045
2050
// state yet, implying our counterparty is trying to route payments
You can’t perform that action at this time.
0 commit comments