Skip to content

Commit

Permalink
Send PaymentForwardedFailed if no forwardable HTLC
Browse files Browse the repository at this point in the history
Trim whitespace
  • Loading branch information
jurvis committed Apr 2, 2022
1 parent 97dcedb commit 2b96fe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lightning/src/ln/channelmanager.rs
Expand Up @@ -4019,6 +4019,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
pending_events.push(events::Event::PendingHTLCsForwardable {
time_forwardable: time
});
} else {
let mut pending_events = self.pending_events.lock().unwrap();
pending_events.push(events::Event::PaymentForwardedFailed {
source_channel_id: short_channel_id, sink_node_id: self.get_our_node_id() });
}
},
}
Expand Down

0 comments on commit 2b96fe0

Please sign in to comment.