Skip to content

Commit 73932d7

Browse files
authored
Merge pull request #49 from ariard/bad_failure_codes
Erroneous failure codes, replace PERM|7 by UPDATE|7
2 parents f22ff22 + 584ad11 commit 73932d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ impl ChannelManager {
754754
match forward_chan.send_htlc(forward_info.amt_to_forward, forward_info.payment_hash, forward_info.outgoing_cltv_value, forward_info.onion_packet.unwrap()) {
755755
Err(_e) => {
756756
let chan_update = self.get_channel_update(forward_chan).unwrap();
757-
failed_forwards.push((forward_info.payment_hash, 0x4000 | 7, Some(chan_update)));
757+
failed_forwards.push((forward_info.payment_hash, 0x1000 | 7, Some(chan_update)));
758758
continue;
759759
},
760760
Ok(update_add) => {
@@ -1465,7 +1465,7 @@ impl ChannelMessageHandler for ChannelManager {
14651465
let chan = channel_state.by_id.get_mut(&forwarding_id).unwrap();
14661466
if !chan.is_live() {
14671467
let chan_update = self.get_channel_update(chan).unwrap();
1468-
return_err!("Forwarding channel is not in a ready state.", 0x4000 | 7, &chan_update.encode_with_len()[..]);
1468+
return_err!("Forwarding channel is not in a ready state.", 0x1000 | 7, &chan_update.encode_with_len()[..]);
14691469
}
14701470
}
14711471

0 commit comments

Comments
 (0)