]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused `chan_id`
authorElias Rohrer <dev@tnull.de>
Mon, 11 Dec 2023 18:50:27 +0000 (19:50 +0100)
committerElias Rohrer <dev@tnull.de>
Mon, 11 Dec 2023 18:50:46 +0000 (19:50 +0100)
lightning/src/ln/channelmanager.rs

index be220f824304f4d40bf62c4bcfd1a04ec6dca080..da95e3b618c472fc0620b23bd57fb94beb615887 100644 (file)
@@ -10495,7 +10495,6 @@ where
                        // 0.0.102+
                        for (_, monitor) in args.channel_monitors.iter() {
                                let counterparty_opt = id_to_peer.get(&monitor.get_funding_txo().0.to_channel_id());
-                               let chan_id = monitor.get_funding_txo().0.to_channel_id();
                                if counterparty_opt.is_none() {
                                        let logger = WithChannelMonitor::from(&args.logger, monitor);
                                        for (htlc_source, (htlc, _)) in monitor.get_pending_or_resolved_outbound_htlcs() {