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