Underscore TxCreationKeys ownership
[rust-lightning] / lightning / src / util / enforcing_trait_impls.rs
index e31e774fe7c659cc428d096b3f68f76bdc4b1525..8f73ee8f1e1022ad711b215c372f80c61378aae9 100644 (file)
@@ -104,7 +104,7 @@ impl ChannelKeys for EnforcingChannelKeys {
 
                for this_htlc in local_commitment_tx.per_htlc.iter() {
                        if this_htlc.0.transaction_output_index.is_some() {
-                               let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid, local_commitment_tx.feerate_per_kw, local_csv, &this_htlc.0, &local_commitment_tx.local_keys.delayed_payment_key, &local_commitment_tx.local_keys.revocation_key);
+                               let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid, local_commitment_tx.feerate_per_kw, local_csv, &this_htlc.0, &local_commitment_tx.local_keys.broadcaster_delayed_payment_key, &local_commitment_tx.local_keys.revocation_key);
 
                                let htlc_redeemscript = chan_utils::get_htlc_redeemscript(&this_htlc.0, &local_commitment_tx.local_keys);