Skip to content

Commit 289a04b

Browse files
committed
f - make multiplier an odd TLV + option not required
1 parent 61e8d3d commit 289a04b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/util/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,13 +496,13 @@ impl_writeable_tlv_based!(ChannelConfig, {
496496
(0, forwarding_fee_proportional_millionths, required),
497497
(1, accept_underpaying_htlcs, (default_value, false)),
498498
(2, forwarding_fee_base_msat, required),
499+
(3, max_dust_htlc_exposure_multiplier_thousandths, option),
499500
(4, cltv_expiry_delta, required),
500501
(6, max_dust_htlc_exposure_msat, required),
501502
// ChannelConfig serialized this field with a required type of 8 prior to the introduction of
502503
// LegacyChannelConfig. To make sure that serialization is not compatible with this one, we use
503504
// the next required type of 10, which if seen by the old serialization will always fail.
504505
(10, force_close_avoidance_max_fee_satoshis, required),
505-
(12, max_dust_htlc_exposure_multiplier_thousandths, required)
506506
});
507507

508508
/// A parallel struct to [`ChannelConfig`] to define partial updates.
@@ -575,9 +575,9 @@ impl crate::util::ser::Writeable for LegacyChannelConfig {
575575
(2, self.options.cltv_expiry_delta, required),
576576
(3, self.options.force_close_avoidance_max_fee_satoshis, (default_value, 1000)),
577577
(4, self.announced_channel, required),
578+
(5, self.options.max_dust_htlc_exposure_multiplier_thousandths, option),
578579
(6, self.commit_upfront_shutdown_pubkey, required),
579580
(8, self.options.forwarding_fee_base_msat, required),
580-
(10, self.options.max_dust_htlc_exposure_multiplier_thousandths, option),
581581
});
582582
Ok(())
583583
}
@@ -599,9 +599,9 @@ impl crate::util::ser::Readable for LegacyChannelConfig {
599599
(2, cltv_expiry_delta, required),
600600
(3, force_close_avoidance_max_fee_satoshis, (default_value, 1000u64)),
601601
(4, announced_channel, required),
602+
(5, max_dust_htlc_exposure_multiplier_thousandths, option),
602603
(6, commit_upfront_shutdown_pubkey, required),
603604
(8, forwarding_fee_base_msat, required),
604-
(10, max_dust_htlc_exposure_multiplier_thousandths, option),
605605
});
606606
Ok(Self {
607607
options: ChannelConfig {

0 commit comments

Comments
 (0)