File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1223,13 +1223,12 @@ impl InMemorySigner {
12231223 return Err ( ( ) ) ;
12241224 }
12251225
1226- let remotepubkey = bitcoin:: PublicKey :: new ( self . pubkeys ( ) . payment_point ) ;
1227- // We cannot always assume that `channel_parameters` is set, so can't just call
1228- // `self.channel_parameters()` or anything that relies on it
1229- let supports_anchors_zero_fee_htlc_tx = self
1230- . channel_type_features ( )
1231- . map ( |features| features. supports_anchors_zero_fee_htlc_tx ( ) )
1232- . unwrap_or ( false ) ;
1226+ // TODO: Is this ok?
1227+ let channel_parameters =
1228+ descriptor. channel_transaction_parameters . as_ref ( ) . expect ( MISSING_PARAMS_ERR ) ;
1229+ let remotepubkey = bitcoin:: PublicKey :: new ( channel_parameters. holder_pubkeys . payment_point ) ;
1230+ let supports_anchors_zero_fee_htlc_tx =
1231+ channel_parameters. channel_type_features . supports_anchors_zero_fee_htlc_tx ( ) ;
12331232
12341233 let witness_script = if supports_anchors_zero_fee_htlc_tx {
12351234 chan_utils:: get_to_countersignatory_with_anchors_redeemscript ( & remotepubkey. inner )
You can’t perform that action at this time.
0 commit comments