@@ -51,7 +51,7 @@ use ln::onion_utils;
5151use ln:: msgs:: { ChannelMessageHandler , DecodeError , LightningError , MAX_VALUE_MSAT , OptionalField } ;
5252use ln:: wire:: Encode ;
5353use chain:: keysinterface:: { Sign , KeysInterface , KeysManager , InMemorySigner , Recipient } ;
54- use util:: config:: UserConfig ;
54+ use util:: config:: { UserConfig , ChannelConfig } ;
5555use util:: events:: { EventHandler , EventsProvider , MessageSendEvent , MessageSendEventsProvider , ClosureReason } ;
5656use util:: { byte_utils, events} ;
5757use util:: scid_utils:: fake_scid;
@@ -1095,6 +1095,10 @@ pub struct ChannelDetails {
10951095 pub inbound_htlc_minimum_msat : Option < u64 > ,
10961096 /// The largest value HTLC (in msat) we currently will accept, for this channel.
10971097 pub inbound_htlc_maximum_msat : Option < u64 > ,
1098+ /// Set of configurable parameters that affect channel operation.
1099+ ///
1100+ /// This field is only `None` for `ChannelDetails` objects serialized prior to LDK 0.0.109.
1101+ pub config : Option < ChannelConfig > ,
10981102}
10991103
11001104impl ChannelDetails {
@@ -1759,7 +1763,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
17591763 is_usable : channel. is_live ( ) ,
17601764 is_public : channel. should_announce ( ) ,
17611765 inbound_htlc_minimum_msat : Some ( channel. get_holder_htlc_minimum_msat ( ) ) ,
1762- inbound_htlc_maximum_msat : channel. get_holder_htlc_maximum_msat ( )
1766+ inbound_htlc_maximum_msat : channel. get_holder_htlc_maximum_msat ( ) ,
1767+ config : Some ( channel. config . options ) ,
17631768 } ) ;
17641769 }
17651770 }
@@ -6089,6 +6094,7 @@ impl_writeable_tlv_based!(ChannelDetails, {
60896094 ( 4 , counterparty, required) ,
60906095 ( 5 , outbound_scid_alias, option) ,
60916096 ( 6 , funding_txo, option) ,
6097+ ( 7 , config, option) ,
60926098 ( 8 , short_channel_id, option) ,
60936099 ( 10 , channel_value_satoshis, required) ,
60946100 ( 12 , unspendable_punishment_reserve, option) ,
0 commit comments