Skip to content

Commit 8bb7c01

Browse files
committed
Add compat comment
1 parent a979694 commit 8bb7c01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/routing/gossip.rs

+2
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ impl Writeable for ChannelUpdateInfo {
635635
(2, self.enabled, required),
636636
(4, self.cltv_expiry_delta, required),
637637
(6, self.htlc_minimum_msat, required),
638+
// Writing htlc_maximum_msat as an Option<u64> is required to maintain backwards
639+
// compatibility with LDK versions prior to v0.0.110.
638640
(8, Some(self.htlc_maximum_msat), required),
639641
(10, self.fees, required),
640642
(12, self.last_update_message, required),

0 commit comments

Comments
 (0)