File tree 1 file changed +2
-7
lines changed 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -591,11 +591,6 @@ impl ChannelTypeFeatures {
591
591
ret
592
592
}
593
593
594
- /// Simplified accessor for checking if anchors are supported
595
- pub fn supports_anchors ( & self ) -> bool {
596
- self . supports_anchors_zero_fee_htlc_tx ( )
597
- }
598
-
599
594
/// There are six legacy structs where we need [`ChannelTypeFeatures`] for keeping track of
600
595
/// anchors and Taproot support. Those six structs are
601
596
/// — [`ChannelTransactionParameters`]
@@ -621,7 +616,7 @@ impl ChannelTypeFeatures {
621
616
/// [`HolderHTLCOutput`]: crate::chain::package::HolderHTLCOutput
622
617
/// [`HolderFundingOutput`]: crate::chain::package::HolderFundingOutput
623
618
pub ( crate ) fn legacy_serialization_safe_version ( & self ) -> Self {
624
- if self . supports_anchors ( ) {
619
+ if self . supports_anchors_zero_fee_htlc_tx ( ) {
625
620
self . clone ( )
626
621
} else {
627
622
Self :: only_static_remote_key ( )
@@ -632,7 +627,7 @@ impl ChannelTypeFeatures {
632
627
/// older versions of LDK, we should skip serialization entirely if anchors are not supported.
633
628
/// This is a helper method to do just that.
634
629
pub ( crate ) fn ldk_0_0_115_safe_serializable_option ( & self ) -> Option < Self > {
635
- if !self . supports_anchors ( ) {
630
+ if !self . supports_anchors_zero_fee_htlc_tx ( ) {
636
631
return None ;
637
632
}
638
633
Some ( self . clone ( ) )
You can’t perform that action at this time.
0 commit comments