Skip to content

Commit

Permalink
Add compat comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Jul 21, 2022
1 parent a979694 commit 8bb7c01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lightning/src/routing/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ impl Writeable for ChannelUpdateInfo {
(2, self.enabled, required),
(4, self.cltv_expiry_delta, required),
(6, self.htlc_minimum_msat, required),
// Writing htlc_maximum_msat as an Option<u64> is required to maintain backwards
// compatibility with LDK versions prior to v0.0.110.
(8, Some(self.htlc_maximum_msat), required),
(10, self.fees, required),
(12, self.last_update_message, required),
Expand Down

0 comments on commit 8bb7c01

Please sign in to comment.