From: Antoine Riard Date: Wed, 18 Jul 2018 00:59:52 +0000 (+0000) Subject: Erroneous failure codes, replace PERM|7 by UPDATE|7 X-Git-Tag: v0.0.12~389^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=584ad11c1d310ccfd7f284177f23ce18d27162db;p=rust-lightning Erroneous failure codes, replace PERM|7 by UPDATE|7 --- diff --git a/src/ln/channelmanager.rs b/src/ln/channelmanager.rs index 13f38c431..f5af09a71 100644 --- a/src/ln/channelmanager.rs +++ b/src/ln/channelmanager.rs @@ -754,7 +754,7 @@ impl ChannelManager { match forward_chan.send_htlc(forward_info.amt_to_forward, forward_info.payment_hash, forward_info.outgoing_cltv_value, forward_info.onion_packet.unwrap()) { Err(_e) => { let chan_update = self.get_channel_update(forward_chan).unwrap(); - failed_forwards.push((forward_info.payment_hash, 0x4000 | 7, Some(chan_update))); + failed_forwards.push((forward_info.payment_hash, 0x1000 | 7, Some(chan_update))); continue; }, Ok(update_add) => { @@ -1465,7 +1465,7 @@ impl ChannelMessageHandler for ChannelManager { let chan = channel_state.by_id.get_mut(&forwarding_id).unwrap(); if !chan.is_live() { let chan_update = self.get_channel_update(chan).unwrap(); - return_err!("Forwarding channel is not in a ready state.", 0x4000 | 7, &chan_update.encode_with_len()[..]); + return_err!("Forwarding channel is not in a ready state.", 0x1000 | 7, &chan_update.encode_with_len()[..]); } }