File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -591,11 +591,6 @@ impl ChannelTypeFeatures {
591591 ret
592592 }
593593
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-
599594 /// There are six legacy structs where we need [`ChannelTypeFeatures`] for keeping track of
600595 /// anchors and Taproot support. Those six structs are
601596 /// — [`ChannelTransactionParameters`]
@@ -621,7 +616,7 @@ impl ChannelTypeFeatures {
621616 /// [`HolderHTLCOutput`]: crate::chain::package::HolderHTLCOutput
622617 /// [`HolderFundingOutput`]: crate::chain::package::HolderFundingOutput
623618 pub ( crate ) fn legacy_serialization_safe_version ( & self ) -> Self {
624- if self . supports_anchors ( ) {
619+ if self . supports_anchors_zero_fee_htlc_tx ( ) {
625620 self . clone ( )
626621 } else {
627622 Self :: only_static_remote_key ( )
@@ -632,7 +627,7 @@ impl ChannelTypeFeatures {
632627 /// older versions of LDK, we should skip serialization entirely if anchors are not supported.
633628 /// This is a helper method to do just that.
634629 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 ( ) {
636631 return None ;
637632 }
638633 Some ( self . clone ( ) )
You can’t perform that action at this time.
0 commit comments