Skip to content

Commit 7a674d8

Browse files
committed
fixup! ln/fix: invalid_onion_version code for DecodeError::UnknownVersion
1 parent 87a5756 commit 7a674d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ fn decode_next_hop<T, R: ReadableArgs<T>, N: NextPacketBytes>(
20392039
Err(err) => {
20402040
let error_code = match err {
20412041
// Unknown version
2042-
msgs::DecodeError::UnknownVersion => 0x8000 | 0x4000 | 1,
2042+
msgs::DecodeError::UnknownVersion => 0x8000 | 0x4000 | 4,
20432043
// invalid_onion_payload
20442044
msgs::DecodeError::UnknownRequiredFeature
20452045
| msgs::DecodeError::InvalidValue

0 commit comments

Comments
 (0)