@@ -1457,8 +1457,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1457
1457
OnchainEvent :: HTLCUpdate { commitment_tx_output_idx, htlc_value_satoshis, .. }
1458
1458
if commitment_tx_output_idx == Some ( htlc_commitment_tx_output_idx) => {
1459
1459
debug_assert!( htlc_update_pending. is_none( ) ) ;
1460
- htlc_update_pending =
1461
- Some ( ( htlc_value_satoshis . unwrap ( ) , event. confirmation_threshold( ) ) ) ;
1460
+ debug_assert_eq! ( htlc_value_satoshis . unwrap ( ) , htlc . amount_msat / 1000 ) ;
1461
+ htlc_update_pending = Some ( event. confirmation_threshold( ) ) ;
1462
1462
} ,
1463
1463
OnchainEvent :: HTLCSpendConfirmation { commitment_tx_output_idx, preimage, .. }
1464
1464
if commitment_tx_output_idx == htlc_commitment_tx_output_idx => {
@@ -1496,9 +1496,9 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1496
1496
// If the payment was outbound, check if there's an HTLCUpdate
1497
1497
// indicating we have spent this HTLC with a timeout, claiming it back
1498
1498
// and awaiting confirmations on it.
1499
- if let Some ( ( value , conf_thresh) ) = htlc_update_pending {
1499
+ if let Some ( conf_thresh) = htlc_update_pending {
1500
1500
res. push( Balance :: ClaimableAwaitingConfirmations {
1501
- claimable_amount_satoshis: value ,
1501
+ claimable_amount_satoshis: htlc . amount_msat / 1000 ,
1502
1502
confirmation_height: conf_thresh,
1503
1503
} ) ;
1504
1504
} else {
0 commit comments