Skip to content

Commit a9ad6f9

Browse files
committed
f moar names
1 parent 0b503ac commit a9ad6f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,11 +2103,13 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
21032103

21042104
if let Some(per_commitment_data) = per_commitment_option {
21052105
fail_unbroadcast_htlcs!(self, "revoked_counterparty", commitment_txid, height,
2106-
per_commitment_data.iter().map(|(a, b)| (a, b.as_ref().map(|b| b.as_ref()))), logger);
2106+
per_commitment_data.iter().map(|(htlc_htlc_source, b)|
2107+
(htlc, htlc_source.as_ref().map(|htlc_source| htlc_source.as_ref()))
2108+
), logger);
21072109
} else {
21082110
debug_assert!(false, "We should have per-commitment option for any recognized old commitment txn");
21092111
fail_unbroadcast_htlcs!(self, "revoked counterparty", commitment_txid, height,
2110-
[].iter().map(|a| *a), logger);
2112+
[].iter().map(|reference| *reference), logger);
21112113
}
21122114
}
21132115
} else if let Some(per_commitment_data) = per_commitment_option {

0 commit comments

Comments
 (0)