Skip to content

Commit a4d85db

Browse files
committed
f backwards compat comment
1 parent 0eff3ce commit a4d85db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/routing/router.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ impl Writeable for RouteParameters {
355355
write_tlv_fields!(writer, {
356356
(0, self.payment_params, required),
357357
(2, self.final_value_msat, required),
358+
// LDK versions prior to 0.0.114 had the `final_cltv_expiry_delta` parameter in
359+
// `RouteParameters` directly. For compatibility, we write it here.
358360
(4, self.payment_params.final_cltv_expiry_delta, required),
359361
});
360362
Ok(())

0 commit comments

Comments
 (0)