Skip to content

Commit 613d406

Browse files
committed
ln/fix: remove legacy payment related error codes
These error codes were removed from the specification seven years ago to prevent probing, so we don't need to handle these cases anymore.
1 parent 3847719 commit 613d406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/onion_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ where
12871287

12881288
// indicate that payment parameter has failed and no need to update Route object
12891289
let payment_failed = match error_code & 0xff {
1290-
15 | 16 | 17 | 18 | 19 | 23 => true,
1290+
15 | 18 | 19 | 23 => true,
12911291
_ => false,
12921292
} && is_from_final_non_blinded_node; // PERM bit observed below even if this error is from the intermediate nodes
12931293

0 commit comments

Comments
 (0)