From 8e7ceabe48a15f00b0baca64f1dfb86614f2c58b Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Fri, 22 Oct 2021 00:27:58 -0500 Subject: [PATCH] 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. Use option TLV encoding instead. --- lightning/src/util/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index df2532e4c..70a6a2dd4 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -468,7 +468,7 @@ impl MaybeReadable for Event { (2, rejected_by_dest, required), (3, all_paths_failed, option), (5, path, vec_type), - (7, short_channel_id, ignorable), + (7, short_channel_id, option), (9, retry, option), }); Ok(Some(Event::PaymentPathFailed { -- 2.39.5