@@ -1448,8 +1448,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1448
1448
OnchainEvent :: HTLCUpdate { commitment_tx_output_idx, htlc_value_satoshis, .. }
1449
1449
if commitment_tx_output_idx == Some ( htlc_commitment_tx_output_idx) => {
1450
1450
debug_assert!( htlc_update_pending. is_none( ) ) ;
1451
- htlc_update_pending =
1452
- Some ( ( htlc_value_satoshis . unwrap ( ) , event. confirmation_threshold( ) ) ) ;
1451
+ debug_assert_eq! ( htlc_value_satoshis . unwrap ( ) , htlc . amount_msat / 1000 ) ;
1452
+ htlc_update_pending = Some ( event. confirmation_threshold( ) ) ;
1453
1453
} ,
1454
1454
OnchainEvent :: HTLCSpendConfirmation { commitment_tx_output_idx, preimage, .. }
1455
1455
if commitment_tx_output_idx == htlc_commitment_tx_output_idx => {
@@ -1487,9 +1487,9 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1487
1487
// If the payment was outbound, check if there's an HTLCUpdate
1488
1488
// indicating we have spent this HTLC with a timeout, claiming it back
1489
1489
// and awaiting confirmations on it.
1490
- if let Some ( ( value , conf_thresh) ) = htlc_update_pending {
1490
+ if let Some ( conf_thresh) = htlc_update_pending {
1491
1491
res. push( Balance :: ClaimableAwaitingConfirmations {
1492
- claimable_amount_satoshis: value ,
1492
+ claimable_amount_satoshis: htlc . amount_msat / 1000 ,
1493
1493
confirmation_height: conf_thresh,
1494
1494
} ) ;
1495
1495
} else {
0 commit comments