@@ -589,8 +589,6 @@ struct IrrevocablyResolvedHTLC {
589
589
/// The txid of the transaction which resolved the HTLC, this may be a commitment,
590
590
/// HTLC-Success, or HTLC-Timeout transaction.
591
591
resolving_txid : Option < Txid > ,
592
- /// The amount of the output for this HTLC in `resolving_txid`.
593
- onchain_value_satoshis : Option < u64 > ,
594
592
/// Only set if the HTLC claim was ours using a payment preimage
595
593
payment_preimage : Option < PaymentPreimage > ,
596
594
}
@@ -599,7 +597,6 @@ impl_writeable_tlv_based!(IrrevocablyResolvedHTLC, {
599
597
( 0 , commitment_tx_output_idx, required) ,
600
598
( 1 , resolving_txid, option) ,
601
599
( 2 , payment_preimage, option) ,
602
- ( 3 , onchain_value_satoshis, option) ,
603
600
} ) ;
604
601
605
602
/// A ChannelMonitor handles chain events (blocks connected and disconnected) and generates
@@ -2704,7 +2701,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2704
2701
if let Some ( idx) = commitment_tx_output_idx {
2705
2702
self . htlcs_resolved_on_chain . push ( IrrevocablyResolvedHTLC {
2706
2703
commitment_tx_output_idx : idx, resolving_txid : Some ( entry. txid ) ,
2707
- payment_preimage : None , onchain_value_satoshis ,
2704
+ payment_preimage : None ,
2708
2705
} ) ;
2709
2706
}
2710
2707
} ,
@@ -2714,10 +2711,11 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2714
2711
outputs : vec ! [ descriptor]
2715
2712
} ) ;
2716
2713
} ,
2717
- OnchainEvent :: HTLCSpendConfirmation { commitment_tx_output_idx, preimage, onchain_value_satoshis , .. } => {
2714
+ OnchainEvent :: HTLCSpendConfirmation { commitment_tx_output_idx, preimage, .. } => {
2718
2715
self . htlcs_resolved_on_chain . push ( IrrevocablyResolvedHTLC {
2719
2716
commitment_tx_output_idx, resolving_txid : Some ( entry. txid ) ,
2720
- payment_preimage : preimage, onchain_value_satoshis } ) ;
2717
+ payment_preimage : preimage,
2718
+ } ) ;
2721
2719
} ,
2722
2720
OnchainEvent :: FundingSpendConfirmation { commitment_tx_to_counterparty_output, .. } => {
2723
2721
self . funding_spend_confirmed = Some ( entry. txid ) ;
0 commit comments