make LocalCommitmentTransaction constructor public
authorDevrandom <c1.devrandom@niftybox.net>
Mon, 20 Jul 2020 12:26:06 +0000 (05:26 -0700)
committerDevrandom <c1.devrandom@niftybox.net>
Tue, 11 Aug 2020 07:23:31 +0000 (09:23 +0200)
Allows calling of InMemoryChannelKeys methods

lightning/src/ln/chan_utils.rs

index c655e120de53a7bae3ce8f95afbdea072cd4e57f..6e29f22801a50ea4b1163233ab5ca63cecde5fc4 100644 (file)
@@ -600,7 +600,7 @@ impl LocalCommitmentTransaction {
 
        /// Generate a new LocalCommitmentTransaction based on a raw commitment transaction,
        /// remote signature and both parties keys
-       pub(crate) fn new_missing_local_sig(unsigned_tx: Transaction, their_sig: Signature, our_funding_key: &PublicKey, their_funding_key: &PublicKey, local_keys: TxCreationKeys, feerate_per_kw: u32, htlc_data: Vec<(HTLCOutputInCommitment, Option<Signature>)>) -> LocalCommitmentTransaction {
+       pub fn new_missing_local_sig(unsigned_tx: Transaction, their_sig: Signature, our_funding_key: &PublicKey, their_funding_key: &PublicKey, local_keys: TxCreationKeys, feerate_per_kw: u32, htlc_data: Vec<(HTLCOutputInCommitment, Option<Signature>)>) -> LocalCommitmentTransaction {
                if unsigned_tx.input.len() != 1 { panic!("Tried to store a commitment transaction that had input count != 1!"); }
                if unsigned_tx.input[0].witness.len() != 0 { panic!("Tried to store a signed commitment transaction?"); }