From: Jeffrey Czyz Date: Fri, 22 Oct 2021 05:27:58 +0000 (-0500) Subject: Use option TLV decoding for short_channel_id X-Git-Tag: v0.0.103~10^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=8e7ceabe48a15f00b0baca64f1dfb86614f2c58b;p=rust-lightning 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. --- 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 {