Skip to content

Commit d09debd

Browse files
committed
Use option TLV decoding for short_channel_id
Using ignorable TLV decoding is only applicable for an Option containing an enum, but short_channel_id is an Option<u64>. Use option TLV encoding instead.
1 parent c4dadd9 commit d09debd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/events.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ impl MaybeReadable for Event {
468468
(2, rejected_by_dest, required),
469469
(3, all_paths_failed, option),
470470
(5, path, vec_type),
471-
(7, short_channel_id, ignorable),
471+
(7, short_channel_id, option),
472472
(9, retry, option),
473473
});
474474
Ok(Some(Event::PaymentPathFailed {

0 commit comments

Comments
 (0)