@@ -51,7 +51,7 @@ use ln::onion_utils;
51
51
use ln:: msgs:: { ChannelMessageHandler , DecodeError , LightningError , MAX_VALUE_MSAT , OptionalField } ;
52
52
use ln:: wire:: Encode ;
53
53
use chain:: keysinterface:: { Sign , KeysInterface , KeysManager , InMemorySigner , Recipient } ;
54
- use util:: config:: UserConfig ;
54
+ use util:: config:: { UserConfig , ChannelConfig } ;
55
55
use util:: events:: { EventHandler , EventsProvider , MessageSendEvent , MessageSendEventsProvider , ClosureReason } ;
56
56
use util:: { byte_utils, events} ;
57
57
use util:: scid_utils:: fake_scid;
@@ -1095,6 +1095,10 @@ pub struct ChannelDetails {
1095
1095
pub inbound_htlc_minimum_msat : Option < u64 > ,
1096
1096
/// The largest value HTLC (in msat) we currently will accept, for this channel.
1097
1097
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 > ,
1098
1102
}
1099
1103
1100
1104
impl ChannelDetails {
@@ -1759,7 +1763,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
1759
1763
is_usable : channel. is_live ( ) ,
1760
1764
is_public : channel. should_announce ( ) ,
1761
1765
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 ) ,
1763
1768
} ) ;
1764
1769
}
1765
1770
}
@@ -6089,6 +6094,7 @@ impl_writeable_tlv_based!(ChannelDetails, {
6089
6094
( 4 , counterparty, required) ,
6090
6095
( 5 , outbound_scid_alias, option) ,
6091
6096
( 6 , funding_txo, option) ,
6097
+ ( 7 , config, option) ,
6092
6098
( 8 , short_channel_id, option) ,
6093
6099
( 10 , channel_value_satoshis, required) ,
6094
6100
( 12 , unspendable_punishment_reserve, option) ,
0 commit comments