@@ -995,7 +995,7 @@ impl<Signer: ChannelSigner> ChannelContext<Signer> {
995
995
}
996
996
997
997
/// Returns the funding_txo we either got from our peer, or were given by
998
- /// get_outbound_funding_created .
998
+ /// get_funding_created .
999
999
pub fn get_funding_txo(&self) -> Option<OutPoint> {
1000
1000
self.channel_transaction_parameters.funding_outpoint
1001
1001
}
@@ -1440,7 +1440,7 @@ impl<Signer: ChannelSigner> ChannelContext<Signer> {
1440
1440
#[inline]
1441
1441
/// Creates a set of keys for build_commitment_transaction to generate a transaction which we
1442
1442
/// will sign and send to our counterparty.
1443
- /// If an Err is returned, it is a ChannelError::Close (for get_outbound_funding_created )
1443
+ /// If an Err is returned, it is a ChannelError::Close (for get_funding_created )
1444
1444
fn build_remote_transaction_keys(&self) -> TxCreationKeys {
1445
1445
//TODO: Ensure that the payment_key derived here ends up in the library users' wallet as we
1446
1446
//may see payments to it!
@@ -2026,7 +2026,7 @@ fn commit_tx_fee_msat(feerate_per_kw: u32, num_htlcs: usize, channel_type_featur
2026
2026
2027
2027
// TODO: We should refactor this to be an Inbound/OutboundChannel until initial setup handshaking
2028
2028
// has been completed, and then turn into a Channel to get compiler-time enforcement of things like
2029
- // calling channel_id() before we're set up or things like get_outbound_funding_signed on an
2029
+ // calling channel_id() before we're set up or things like get_funding_signed on an
2030
2030
// inbound channel.
2031
2031
//
2032
2032
// Holder designates channel data owned for the benefit of the user client.
@@ -5682,8 +5682,8 @@ impl<Signer: WriteableEcdsaChannelSigner> OutboundV1Channel<Signer> {
5682
5682
})
5683
5683
}
5684
5684
5685
- /// If an Err is returned, it is a ChannelError::Close (for get_outbound_funding_created )
5686
- fn get_outbound_funding_created_signature <L: Deref>(&mut self, logger: &L) -> Result<Signature, ChannelError> where L::Target: Logger {
5685
+ /// If an Err is returned, it is a ChannelError::Close (for get_funding_created )
5686
+ fn get_funding_created_signature <L: Deref>(&mut self, logger: &L) -> Result<Signature, ChannelError> where L::Target: Logger {
5687
5687
let counterparty_keys = self.context.build_remote_transaction_keys();
5688
5688
let counterparty_initial_commitment_tx = self.context.build_commitment_transaction(self.context.cur_counterparty_commitment_transaction_number, &counterparty_keys, false, false, logger).tx;
5689
5689
Ok(self.context.holder_signer.sign_counterparty_commitment(&counterparty_initial_commitment_tx, Vec::new(), &self.context.secp_ctx)
@@ -5697,7 +5697,7 @@ impl<Signer: WriteableEcdsaChannelSigner> OutboundV1Channel<Signer> {
5697
5697
/// Note that channel_id changes during this call!
5698
5698
/// Do NOT broadcast the funding transaction until after a successful funding_signed call!
5699
5699
/// If an Err is returned, it is a ChannelError::Close.
5700
- pub fn get_outbound_funding_created <L: Deref>(mut self, funding_transaction: Transaction, funding_txo: OutPoint, logger: &L)
5700
+ pub fn get_funding_created <L: Deref>(mut self, funding_transaction: Transaction, funding_txo: OutPoint, logger: &L)
5701
5701
-> Result<(Channel<Signer>, msgs::FundingCreated), (Self, ChannelError)> where L::Target: Logger {
5702
5702
if !self.context.is_outbound() {
5703
5703
panic!("Tried to create outbound funding_created message on an inbound channel!");
@@ -5714,7 +5714,7 @@ impl<Signer: WriteableEcdsaChannelSigner> OutboundV1Channel<Signer> {
5714
5714
self.context.channel_transaction_parameters.funding_outpoint = Some(funding_txo);
5715
5715
self.context.holder_signer.provide_channel_parameters(&self.context.channel_transaction_parameters);
5716
5716
5717
- let signature = match self.get_outbound_funding_created_signature (logger) {
5717
+ let signature = match self.get_funding_created_signature (logger) {
5718
5718
Ok(res) => res,
5719
5719
Err(e) => {
5720
5720
log_error!(logger, "Got bad signatures: {:?}!", e);
@@ -7598,7 +7598,7 @@ mod tests {
7598
7598
value: 10000000, script_pubkey: output_script.clone(),
7599
7599
}]};
7600
7600
let funding_outpoint = OutPoint{ txid: tx.txid(), index: 0 };
7601
- let (mut node_a_chan, funding_created_msg) = node_a_chan.get_outbound_funding_created (tx.clone(), funding_outpoint, &&logger).map_err(|_| ()).unwrap();
7601
+ let (mut node_a_chan, funding_created_msg) = node_a_chan.get_funding_created (tx.clone(), funding_outpoint, &&logger).map_err(|_| ()).unwrap();
7602
7602
let (_, funding_signed_msg, _) = node_b_chan.funding_created(&funding_created_msg, best_block, &&keys_provider, &&logger).map_err(|_| ()).unwrap();
7603
7603
7604
7604
// Node B --> Node A: funding signed
@@ -7725,7 +7725,7 @@ mod tests {
7725
7725
value: 10000000, script_pubkey: output_script.clone(),
7726
7726
}]};
7727
7727
let funding_outpoint = OutPoint{ txid: tx.txid(), index: 0 };
7728
- let (mut node_a_chan, funding_created_msg) = node_a_chan.get_outbound_funding_created (tx.clone(), funding_outpoint, &&logger).map_err(|_| ()).unwrap();
7728
+ let (mut node_a_chan, funding_created_msg) = node_a_chan.get_funding_created (tx.clone(), funding_outpoint, &&logger).map_err(|_| ()).unwrap();
7729
7729
let (mut node_b_chan, funding_signed_msg, _) = node_b_chan.funding_created(&funding_created_msg, best_block, &&keys_provider, &&logger).map_err(|_| ()).unwrap();
7730
7730
7731
7731
// Node B --> Node A: funding signed
@@ -7913,7 +7913,7 @@ mod tests {
7913
7913
value: 10000000, script_pubkey: output_script.clone(),
7914
7914
}]};
7915
7915
let funding_outpoint = OutPoint{ txid: tx.txid(), index: 0 };
7916
- let (mut node_a_chan, funding_created_msg) = node_a_chan.get_outbound_funding_created (tx.clone(), funding_outpoint, &&logger).map_err(|_| ()).unwrap();
7916
+ let (mut node_a_chan, funding_created_msg) = node_a_chan.get_funding_created (tx.clone(), funding_outpoint, &&logger).map_err(|_| ()).unwrap();
7917
7917
let (_, funding_signed_msg, _) = node_b_chan.funding_created(&funding_created_msg, best_block, &&keys_provider, &&logger).map_err(|_| ()).unwrap();
7918
7918
7919
7919
// Node B --> Node A: funding signed
0 commit comments