Skip to content

Commit d34efe2

Browse files
committed
f comments tweaks
1 parent df15786 commit d34efe2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
15291529
// We should assert that funding_spend_confirmed is_some() here, but we
15301530
// have some unit tests which violate HTLC transaction CSVs entirely and
15311531
// would fail.
1532+
// TODO: Once tests all connect transactions at consensus-valid times, we
1533+
// should assert here like we do in `get_claimable_balances`.
15321534
} else if htlc.offered == $holder_commitment {
15331535
// If the payment was outbound, check if there's an HTLCUpdate
15341536
// indicating we have spent this HTLC with a timeout, claiming it back
@@ -1560,7 +1562,7 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
15601562

15611563
// We're only concerned with the confirmation count of HTLC transactions, and don't
15621564
// actually care how many confirmations a commitment transaction may or may not have. Thus,
1563-
// we look for both a FundingSpendConfirmation event, or at funding_spend_confirmed.
1565+
// we look for both a FundingSpendConfirmation event, or a funding_spend_confirmed.
15641566
let confirmed_txid = us.funding_spend_confirmed.or_else(|| {
15651567
us.onchain_events_awaiting_threshold_conf.iter().find_map(|event| {
15661568
if let OnchainEvent::FundingSpendConfirmation { .. } = event.event {

0 commit comments

Comments
 (0)