@@ -1438,8 +1438,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1438
1438
OnchainEvent :: HTLCUpdate { commitment_tx_output_idx, htlc_value_satoshis, .. }
1439
1439
if commitment_tx_output_idx == Some ( htlc_commitment_tx_output_idx) => {
1440
1440
debug_assert!( htlc_update_pending. is_none( ) ) ;
1441
- htlc_update_pending =
1442
- Some ( ( htlc_value_satoshis . unwrap ( ) , event. confirmation_threshold( ) ) ) ;
1441
+ debug_assert_eq! ( htlc_value_satoshis . unwrap ( ) , htlc . amount_msat / 1000 ) ;
1442
+ htlc_update_pending = Some ( event. confirmation_threshold( ) ) ;
1443
1443
} ,
1444
1444
OnchainEvent :: HTLCSpendConfirmation { commitment_tx_output_idx, preimage, .. }
1445
1445
if commitment_tx_output_idx == htlc_commitment_tx_output_idx => {
@@ -1477,9 +1477,9 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1477
1477
// If the payment was outbound, check if there's an HTLCUpdate
1478
1478
// indicating we have spent this HTLC with a timeout, claiming it back
1479
1479
// and awaiting confirmations on it.
1480
- if let Some ( ( value , conf_thresh) ) = htlc_update_pending {
1480
+ if let Some ( conf_thresh) = htlc_update_pending {
1481
1481
res. push( Balance :: ClaimableAwaitingConfirmations {
1482
- claimable_amount_satoshis: value ,
1482
+ claimable_amount_satoshis: htlc . amount_msat / 1000 ,
1483
1483
confirmation_height: conf_thresh,
1484
1484
} ) ;
1485
1485
} else {
0 commit comments