Skip to content

Commit e2a95f3

Browse files
committed
f moar names
1 parent 6008efd commit e2a95f3

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
@@ -2112,11 +2112,13 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
21122112

21132113
if let Some(per_commitment_data) = per_commitment_option {
21142114
fail_unbroadcast_htlcs!(self, "revoked_counterparty", commitment_txid, height,
2115-
per_commitment_data.iter().map(|(a, b)| (a, b.as_ref().map(|b| b.as_ref()))), logger);
2115+
per_commitment_data.iter().map(|(htlc_htlc_source, b)|
2116+
(htlc, htlc_source.as_ref().map(|htlc_source| htlc_source.as_ref()))
2117+
), logger);
21162118
} else {
21172119
debug_assert!(false, "We should have per-commitment option for any recognized old commitment txn");
21182120
fail_unbroadcast_htlcs!(self, "revoked counterparty", commitment_txid, height,
2119-
[].iter().map(|a| *a), logger);
2121+
[].iter().map(|reference| *reference), logger);
21202122
}
21212123
}
21222124
} else if let Some(per_commitment_data) = per_commitment_option {

0 commit comments

Comments
 (0)