X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fchannelmonitor.rs;h=70c92143af8b50d58eb06f9c10878fc6fe190e2d;hb=73e0a0112adae5086ae6617fec2131f362086797;hp=6855ac15a77e9ad163921995169ea4e903f2dd09;hpb=04a17b2a152396384b108e8ef284c85bd9f0b50b;p=rust-lightning diff --git a/lightning/src/ln/channelmonitor.rs b/lightning/src/ln/channelmonitor.rs index 6855ac15..70c92143 100644 --- a/lightning/src/ln/channelmonitor.rs +++ b/lightning/src/ln/channelmonitor.rs @@ -1244,7 +1244,7 @@ impl ChannelMonitor { self.prev_local_signed_commitment_tx = self.current_local_signed_commitment_tx.take(); self.current_local_signed_commitment_tx = Some(LocalSignedTx { txid: commitment_tx.txid(), - tx: commitment_tx, + tx: commitment_tx.clone(), revocation_key: local_keys.revocation_key, a_htlc_key: local_keys.a_htlc_key, b_htlc_key: local_keys.b_htlc_key, @@ -1253,6 +1253,7 @@ impl ChannelMonitor { feerate_per_kw, htlc_outputs, }); + self.onchain_tx_handler.provide_latest_local_tx(commitment_tx); Ok(()) }