@@ -161,7 +161,7 @@ pub enum SpendableOutputDescriptor {
161161 ///
162162 /// To derive the revocation_pubkey provided here (which is used in the witness
163163 /// script generation), you must pass the counterparty revocation_basepoint (which appears in the
164- /// call to Sign::ready_channel ) and the provided per_commitment point
164+ /// call to Sign::provide_channel_parameters ) and the provided per_commitment point
165165 /// to chan_utils::derive_public_revocation_key.
166166 ///
167167 /// The witness script which is hashed and included in the output script_pubkey may be
@@ -377,7 +377,7 @@ pub trait BaseSign {
377377 /// We bind holder_selected_contest_delay late here for API convenience.
378378 ///
379379 /// Will be called before any signatures are applied.
380- fn ready_channel ( & mut self , channel_parameters : & ChannelTransactionParameters ) ;
380+ fn provide_channel_parameters ( & mut self , channel_parameters : & ChannelTransactionParameters ) ;
381381}
382382
383383/// A cloneable signer.
@@ -580,39 +580,39 @@ impl InMemorySigner {
580580 }
581581
582582 /// Counterparty pubkeys.
583- /// Will panic if ready_channel wasn't called.
583+ /// Will panic if provide_channel_parameters wasn't called.
584584 pub fn counterparty_pubkeys ( & self ) -> & ChannelPublicKeys { & self . get_channel_parameters ( ) . counterparty_parameters . as_ref ( ) . unwrap ( ) . pubkeys }
585585
586586 /// The contest_delay value specified by our counterparty and applied on holder-broadcastable
587587 /// transactions, ie the amount of time that we have to wait to recover our funds if we
588588 /// broadcast a transaction.
589- /// Will panic if ready_channel wasn't called.
589+ /// Will panic if provide_channel_parameters wasn't called.
590590 pub fn counterparty_selected_contest_delay ( & self ) -> u16 { self . get_channel_parameters ( ) . counterparty_parameters . as_ref ( ) . unwrap ( ) . selected_contest_delay }
591591
592592 /// The contest_delay value specified by us and applied on transactions broadcastable
593593 /// by our counterparty, ie the amount of time that they have to wait to recover their funds
594594 /// if they broadcast a transaction.
595- /// Will panic if ready_channel wasn't called.
595+ /// Will panic if provide_channel_parameters wasn't called.
596596 pub fn holder_selected_contest_delay ( & self ) -> u16 { self . get_channel_parameters ( ) . holder_selected_contest_delay }
597597
598598 /// Whether the holder is the initiator
599- /// Will panic if ready_channel wasn't called.
599+ /// Will panic if provide_channel_parameters wasn't called.
600600 pub fn is_outbound ( & self ) -> bool { self . get_channel_parameters ( ) . is_outbound_from_holder }
601601
602602 /// Funding outpoint
603- /// Will panic if ready_channel wasn't called.
603+ /// Will panic if provide_channel_parameters wasn't called.
604604 pub fn funding_outpoint ( & self ) -> & OutPoint { self . get_channel_parameters ( ) . funding_outpoint . as_ref ( ) . unwrap ( ) }
605605
606606 /// Obtain a ChannelTransactionParameters for this channel, to be used when verifying or
607607 /// building transactions.
608608 ///
609- /// Will panic if ready_channel wasn't called.
609+ /// Will panic if provide_channel_parameters wasn't called.
610610 pub fn get_channel_parameters ( & self ) -> & ChannelTransactionParameters {
611611 self . channel_parameters . as_ref ( ) . unwrap ( )
612612 }
613613
614614 /// Whether anchors should be used.
615- /// Will panic if ready_channel wasn't called.
615+ /// Will panic if provide_channel_parameters wasn't called.
616616 pub fn opt_anchors ( & self ) -> bool {
617617 self . get_channel_parameters ( ) . opt_anchors . is_some ( )
618618 }
@@ -816,7 +816,7 @@ impl BaseSign for InMemorySigner {
816816 Ok ( ( sign ( secp_ctx, & msghash, & self . node_secret ) , sign ( secp_ctx, & msghash, & self . funding_key ) ) )
817817 }
818818
819- fn ready_channel ( & mut self , channel_parameters : & ChannelTransactionParameters ) {
819+ fn provide_channel_parameters ( & mut self , channel_parameters : & ChannelTransactionParameters ) {
820820 assert ! ( self . channel_parameters. is_none( ) , "Acceptance already noted" ) ;
821821 assert ! ( channel_parameters. is_populated( ) , "Channel parameters must be fully populated" ) ;
822822 self . channel_parameters = Some ( channel_parameters. clone ( ) ) ;
0 commit comments