@@ -963,7 +963,7 @@ impl<Signer: ChannelSigner> ChannelContext<Signer> {
963
963
}
964
964
965
965
/// Returns the funding_txo we either got from our peer, or were given by
966
- /// get_outbound_funding_created .
966
+ /// get_funding_created .
967
967
pub fn get_funding_txo ( & self ) -> Option < OutPoint > {
968
968
self . channel_transaction_parameters . funding_outpoint
969
969
}
@@ -1398,7 +1398,7 @@ impl<Signer: ChannelSigner> ChannelContext<Signer> {
1398
1398
#[ inline]
1399
1399
/// Creates a set of keys for build_commitment_transaction to generate a transaction which we
1400
1400
/// will sign and send to our counterparty.
1401
- /// If an Err is returned, it is a ChannelError::Close (for get_outbound_funding_created )
1401
+ /// If an Err is returned, it is a ChannelError::Close (for get_funding_created )
1402
1402
fn build_remote_transaction_keys ( & self ) -> TxCreationKeys {
1403
1403
//TODO: Ensure that the payment_key derived here ends up in the library users' wallet as we
1404
1404
//may see payments to it!
@@ -1980,7 +1980,7 @@ fn commit_tx_fee_msat(feerate_per_kw: u32, num_htlcs: usize, channel_type_featur
1980
1980
1981
1981
// TODO: We should refactor this to be an Inbound/OutboundChannel until initial setup handshaking
1982
1982
// has been completed, and then turn into a Channel to get compiler-time enforcement of things like
1983
- // calling channel_id() before we're set up or things like get_outbound_funding_signed on an
1983
+ // calling channel_id() before we're set up or things like get_funding_signed on an
1984
1984
// inbound channel.
1985
1985
//
1986
1986
// Holder designates channel data owned for the benefit of the user client.
@@ -5587,8 +5587,8 @@ impl<Signer: WriteableEcdsaChannelSigner> OutboundV1Channel<Signer> {
5587
5587
} )
5588
5588
}
5589
5589
5590
- /// If an Err is returned, it is a ChannelError::Close (for get_outbound_funding_created )
5591
- fn get_outbound_funding_created_signature < L : Deref > ( & mut self , logger : & L ) -> Result < Signature , ChannelError > where L :: Target : Logger {
5590
+ /// If an Err is returned, it is a ChannelError::Close (for get_funding_created )
5591
+ fn get_funding_created_signature < L : Deref > ( & mut self , logger : & L ) -> Result < Signature , ChannelError > where L :: Target : Logger {
5592
5592
let counterparty_keys = self . context . build_remote_transaction_keys ( ) ;
5593
5593
let counterparty_initial_commitment_tx = self . context . build_commitment_transaction ( self . context . cur_counterparty_commitment_transaction_number , & counterparty_keys, false , false , logger) . tx ;
5594
5594
Ok ( self . context . holder_signer . sign_counterparty_commitment ( & counterparty_initial_commitment_tx, Vec :: new ( ) , & self . context . secp_ctx )
@@ -5602,7 +5602,7 @@ impl<Signer: WriteableEcdsaChannelSigner> OutboundV1Channel<Signer> {
5602
5602
/// Note that channel_id changes during this call!
5603
5603
/// Do NOT broadcast the funding transaction until after a successful funding_signed call!
5604
5604
/// If an Err is returned, it is a ChannelError::Close.
5605
- pub fn get_outbound_funding_created < L : Deref > ( mut self , funding_transaction : Transaction , funding_txo : OutPoint , logger : & L )
5605
+ pub fn get_funding_created < L : Deref > ( mut self , funding_transaction : Transaction , funding_txo : OutPoint , logger : & L )
5606
5606
-> Result < ( Channel < Signer > , msgs:: FundingCreated ) , ( Self , ChannelError ) > where L :: Target : Logger {
5607
5607
if !self . context . is_outbound ( ) {
5608
5608
panic ! ( "Tried to create outbound funding_created message on an inbound channel!" ) ;
@@ -5619,7 +5619,7 @@ impl<Signer: WriteableEcdsaChannelSigner> OutboundV1Channel<Signer> {
5619
5619
self . context . channel_transaction_parameters . funding_outpoint = Some ( funding_txo) ;
5620
5620
self . context . holder_signer . provide_channel_parameters ( & self . context . channel_transaction_parameters ) ;
5621
5621
5622
- let signature = match self . get_outbound_funding_created_signature ( logger) {
5622
+ let signature = match self . get_funding_created_signature ( logger) {
5623
5623
Ok ( res) => res,
5624
5624
Err ( e) => {
5625
5625
log_error ! ( logger, "Got bad signatures: {:?}!" , e) ;
@@ -7496,7 +7496,7 @@ mod tests {
7496
7496
value: 10000000 , script_pubkey: output_script. clone( ) ,
7497
7497
} ] } ;
7498
7498
let funding_outpoint = OutPoint { txid : tx. txid ( ) , index : 0 } ;
7499
- let ( mut node_a_chan, funding_created_msg) = node_a_chan. get_outbound_funding_created ( tx. clone ( ) , funding_outpoint, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7499
+ let ( mut node_a_chan, funding_created_msg) = node_a_chan. get_funding_created ( tx. clone ( ) , funding_outpoint, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7500
7500
let ( _, funding_signed_msg, _) = node_b_chan. funding_created ( & funding_created_msg, best_block, & & keys_provider, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7501
7501
7502
7502
// Node B --> Node A: funding signed
@@ -7623,7 +7623,7 @@ mod tests {
7623
7623
value: 10000000 , script_pubkey: output_script. clone( ) ,
7624
7624
} ] } ;
7625
7625
let funding_outpoint = OutPoint { txid : tx. txid ( ) , index : 0 } ;
7626
- let ( mut node_a_chan, funding_created_msg) = node_a_chan. get_outbound_funding_created ( tx. clone ( ) , funding_outpoint, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7626
+ let ( mut node_a_chan, funding_created_msg) = node_a_chan. get_funding_created ( tx. clone ( ) , funding_outpoint, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7627
7627
let ( mut node_b_chan, funding_signed_msg, _) = node_b_chan. funding_created ( & funding_created_msg, best_block, & & keys_provider, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7628
7628
7629
7629
// Node B --> Node A: funding signed
@@ -7811,7 +7811,7 @@ mod tests {
7811
7811
value: 10000000 , script_pubkey: output_script. clone( ) ,
7812
7812
} ] } ;
7813
7813
let funding_outpoint = OutPoint { txid : tx. txid ( ) , index : 0 } ;
7814
- let ( mut node_a_chan, funding_created_msg) = node_a_chan. get_outbound_funding_created ( tx. clone ( ) , funding_outpoint, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7814
+ let ( mut node_a_chan, funding_created_msg) = node_a_chan. get_funding_created ( tx. clone ( ) , funding_outpoint, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7815
7815
let ( _, funding_signed_msg, _) = node_b_chan. funding_created ( & funding_created_msg, best_block, & & keys_provider, & & logger) . map_err ( |_| ( ) ) . unwrap ( ) ;
7816
7816
7817
7817
// Node B --> Node A: funding signed
0 commit comments