@@ -688,7 +688,7 @@ impl HolderCommitmentTransaction {
688
688
}
689
689
}
690
690
pub ( crate ) fn txid < T : secp256k1:: Signing + secp256k1:: Verification > ( & self , channel_parameters : & DirectedChannelTransactionParameters , secp_ctx : & Secp256k1 < T > ) -> Txid {
691
- self . info . txid ( channel_parameters, secp_ctx)
691
+ self . info . calculate_txid ( channel_parameters, secp_ctx)
692
692
}
693
693
}
694
694
@@ -763,12 +763,12 @@ impl_writeable!(CommitmentTransaction, 0, {
763
763
} ) ;
764
764
765
765
impl CommitmentTransaction {
766
- /// Construct an object of the class while assigning transaction output indices to HTLCs.
767
- ///
768
- /// Also keeps track of auxiliary HTLC data and returns it along with the mutated and sorted HTLCs.
769
- /// This allows the caller to match the HTLC output index with the auxiliary data.
770
- /// This auxiliary data is not stored in this object.
771
- pub fn new_with_auxiliary_htlc_data < T : Copy > ( commitment_number : u64 , to_broadcaster_value_sat : u64 , to_countersignatory_value_sat : u64 , keys : TxCreationKeys , feerate_per_kw : u32 , htlcs_with_aux : Vec < ( HTLCOutputInCommitment , T ) > , channel_parameters : & DirectedChannelTransactionParameters , secp_ctx : & Secp256k1 < secp256k1:: All > ) -> ( CommitmentTransaction , Vec < ( HTLCOutputInCommitment , T ) > ) {
766
+ // Construct an object of the class while assigning transaction output indices to HTLCs.
767
+ //
768
+ // Also keeps track of auxiliary HTLC data and returns it along with the mutated and sorted HTLCs.
769
+ // This allows the caller to match the HTLC output index with the auxiliary data.
770
+ // This auxiliary data is not stored in this object.
771
+ pub ( crate ) fn new_with_auxiliary_htlc_data < T : Copy > ( commitment_number : u64 , to_broadcaster_value_sat : u64 , to_countersignatory_value_sat : u64 , keys : TxCreationKeys , feerate_per_kw : u32 , htlcs_with_aux : Vec < ( HTLCOutputInCommitment , T ) > , channel_parameters : & DirectedChannelTransactionParameters , secp_ctx : & Secp256k1 < secp256k1:: All > ) -> ( CommitmentTransaction , Vec < ( HTLCOutputInCommitment , T ) > ) {
772
772
// Sort outputs and populate output indices while keeping track of the auxiliary data
773
773
let mut txouts = Self :: do_build_outputs ( & keys, to_broadcaster_value_sat, to_countersignatory_value_sat, & htlcs_with_aux, channel_parameters, & secp_ctx) . unwrap ( ) ;
774
774
let mut result_htlcs_with_aux = Vec :: new ( ) ;
@@ -792,7 +792,7 @@ impl CommitmentTransaction {
792
792
( info, result_htlcs_with_aux)
793
793
}
794
794
795
- pub ( crate ) fn txid < T : secp256k1:: Signing + secp256k1:: Verification > ( & self , channel_parameters : & DirectedChannelTransactionParameters , secp_ctx : & Secp256k1 < T > ) -> Txid {
795
+ pub ( crate ) fn calculate_txid < T : secp256k1:: Signing + secp256k1:: Verification > ( & self , channel_parameters : & DirectedChannelTransactionParameters , secp_ctx : & Secp256k1 < T > ) -> Txid {
796
796
let tx = self . build ( channel_parameters, secp_ctx) . unwrap ( ) . 0 ;
797
797
tx. txid ( )
798
798
}
0 commit comments