File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ pub(crate) fn get_to_countersignatory_with_anchors_redeemscript(payment_point: &
636
636
/// <>
637
637
/// (empty vector required to satisfy compliance with MINIMALIF-standard rule)
638
638
#[ inline]
639
- pub ( crate ) fn get_anchor_redeemscript ( funding_pubkey : & PublicKey ) -> Script {
639
+ pub fn get_anchor_redeemscript ( funding_pubkey : & PublicKey ) -> Script {
640
640
Builder :: new ( ) . push_slice ( & funding_pubkey. serialize ( ) [ ..] )
641
641
. push_opcode ( opcodes:: all:: OP_CHECKSIG )
642
642
. push_opcode ( opcodes:: all:: OP_IFDUP )
@@ -774,6 +774,11 @@ impl<'a> DirectedChannelTransactionParameters<'a> {
774
774
pub fn funding_outpoint ( & self ) -> OutPoint {
775
775
self . inner . funding_outpoint . unwrap ( ) . into_bitcoin_outpoint ( )
776
776
}
777
+
778
+ /// Whether to use anchors for this channel
779
+ pub fn opt_anchors ( & self ) -> bool {
780
+ self . inner . opt_anchors . is_some ( )
781
+ }
777
782
}
778
783
779
784
/// Information needed to build and sign a holder's commitment transaction.
You can’t perform that action at this time.
0 commit comments