@@ -496,13 +496,13 @@ impl_writeable_tlv_based!(ChannelConfig, {
496
496
( 0 , forwarding_fee_proportional_millionths, required) ,
497
497
( 1 , accept_underpaying_htlcs, ( default_value, false ) ) ,
498
498
( 2 , forwarding_fee_base_msat, required) ,
499
+ ( 3 , max_dust_htlc_exposure_multiplier_thousandths, option) ,
499
500
( 4 , cltv_expiry_delta, required) ,
500
501
( 6 , max_dust_htlc_exposure_msat, required) ,
501
502
// ChannelConfig serialized this field with a required type of 8 prior to the introduction of
502
503
// LegacyChannelConfig. To make sure that serialization is not compatible with this one, we use
503
504
// the next required type of 10, which if seen by the old serialization will always fail.
504
505
( 10 , force_close_avoidance_max_fee_satoshis, required) ,
505
- ( 12 , max_dust_htlc_exposure_multiplier_thousandths, required)
506
506
} ) ;
507
507
508
508
/// A parallel struct to [`ChannelConfig`] to define partial updates.
@@ -575,9 +575,9 @@ impl crate::util::ser::Writeable for LegacyChannelConfig {
575
575
( 2 , self . options. cltv_expiry_delta, required) ,
576
576
( 3 , self . options. force_close_avoidance_max_fee_satoshis, ( default_value, 1000 ) ) ,
577
577
( 4 , self . announced_channel, required) ,
578
+ ( 5 , self . options. max_dust_htlc_exposure_multiplier_thousandths, option) ,
578
579
( 6 , self . commit_upfront_shutdown_pubkey, required) ,
579
580
( 8 , self . options. forwarding_fee_base_msat, required) ,
580
- ( 10 , self . options. max_dust_htlc_exposure_multiplier_thousandths, option) ,
581
581
} ) ;
582
582
Ok ( ( ) )
583
583
}
@@ -599,9 +599,9 @@ impl crate::util::ser::Readable for LegacyChannelConfig {
599
599
( 2 , cltv_expiry_delta, required) ,
600
600
( 3 , force_close_avoidance_max_fee_satoshis, ( default_value, 1000u64 ) ) ,
601
601
( 4 , announced_channel, required) ,
602
+ ( 5 , max_dust_htlc_exposure_multiplier_thousandths, option) ,
602
603
( 6 , commit_upfront_shutdown_pubkey, required) ,
603
604
( 8 , forwarding_fee_base_msat, required) ,
604
- ( 10 , max_dust_htlc_exposure_multiplier_thousandths, option) ,
605
605
} ) ;
606
606
Ok ( Self {
607
607
options : ChannelConfig {
0 commit comments