@@ -34,6 +34,7 @@ use bitcoin::secp256k1::{self, SecretKey, PublicKey, Secp256k1, ecdsa::Signature
3434
3535use  crate :: ln:: channel:: INITIAL_COMMITMENT_NUMBER ; 
3636use  crate :: ln:: types:: ChannelId ; 
37+ use  crate :: types:: features:: ChannelTypeFeatures ; 
3738use  crate :: types:: payment:: { PaymentHash ,  PaymentPreimage } ; 
3839use  crate :: ln:: msgs:: DecodeError ; 
3940use  crate :: ln:: channel_keys:: { DelayedPaymentKey ,  DelayedPaymentBasepoint ,  HtlcBasepoint ,  HtlcKey ,  RevocationKey ,  RevocationBasepoint } ; 
@@ -1614,6 +1615,11 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
16141615		self . inner . lock ( ) . unwrap ( ) . channel_id ( ) 
16151616	} 
16161617
1618+ 	/// Gets the channel type of the corresponding channel. 
1619+  	pub  fn  channel_type_features ( & self )  -> ChannelTypeFeatures  { 
1620+ 		self . inner . lock ( ) . unwrap ( ) . channel_type_features ( ) 
1621+ 	} 
1622+ 
16171623	/// Gets a list of txids, with their output scripts (in the order they appear in the 
16181624 	/// transaction), which we must learn about spends of via block_connected(). 
16191625 	pub  fn  get_outputs_to_watch ( & self )  -> Vec < ( Txid ,  Vec < ( u32 ,  ScriptBuf ) > ) >  { 
@@ -4809,6 +4815,10 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
48094815			self . onchain_events_awaiting_threshold_conf . push ( entry) ; 
48104816		} 
48114817	} 
4818+ 
4819+ 	fn  channel_type_features ( & self )  -> ChannelTypeFeatures  { 
4820+ 		self . onchain_tx_handler . channel_type_features ( ) . clone ( ) 
4821+ 	} 
48124822} 
48134823
48144824impl < Signer :  EcdsaChannelSigner ,  T :  Deref ,  F :  Deref ,  L :  Deref >  chain:: Listen  for  ( ChannelMonitor < Signer > ,  T ,  F ,  L ) 
0 commit comments