File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1529,6 +1529,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1529
1529
// We should assert that funding_spend_confirmed is_some() here, but we
1530
1530
// have some unit tests which violate HTLC transaction CSVs entirely and
1531
1531
// 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`.
1532
1534
} else if htlc. offered == $holder_commitment {
1533
1535
// If the payment was outbound, check if there's an HTLCUpdate
1534
1536
// indicating we have spent this HTLC with a timeout, claiming it back
@@ -1560,7 +1562,7 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1560
1562
1561
1563
// We're only concerned with the confirmation count of HTLC transactions, and don't
1562
1564
// 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.
1564
1566
let confirmed_txid = us. funding_spend_confirmed . or_else ( || {
1565
1567
us. onchain_events_awaiting_threshold_conf . iter ( ) . find_map ( |event| {
1566
1568
if let OnchainEvent :: FundingSpendConfirmation { .. } = event. event {
You can’t perform that action at this time.
0 commit comments