}
else if error_code & PERM == PERM {
if !payment_failed {
- network_update = Some(NetworkUpdate::ChannelClosed {
+ network_update = Some(NetworkUpdate::ChannelFailure {
short_channel_id: failing_route_hop.short_channel_id,
is_permanent: true,
});
if is_chan_update_invalid {
// This probably indicates the node which forwarded
// to the node in question corrupted something.
- network_update = Some(NetworkUpdate::ChannelClosed {
+ network_update = Some(NetworkUpdate::ChannelFailure {
short_channel_id: route_hop.short_channel_id,
is_permanent: true,
});