@@ -166,11 +166,11 @@ pub struct HTLCUpdate {
166
166
pub ( crate ) payment_hash : PaymentHash ,
167
167
pub ( crate ) payment_preimage : Option < PaymentPreimage > ,
168
168
pub ( crate ) source : HTLCSource ,
169
- pub ( crate ) onchain_value_satoshis : Option < u64 > ,
169
+ pub ( crate ) htlc_value_satoshis : Option < u64 > ,
170
170
}
171
171
impl_writeable_tlv_based ! ( HTLCUpdate , {
172
172
( 0 , payment_hash, required) ,
173
- ( 1 , onchain_value_satoshis , option) ,
173
+ ( 1 , htlc_value_satoshis , option) ,
174
174
( 2 , source, required) ,
175
175
( 4 , payment_preimage, option) ,
176
176
} ) ;
@@ -357,7 +357,7 @@ enum OnchainEvent {
357
357
HTLCUpdate {
358
358
source : HTLCSource ,
359
359
payment_hash : PaymentHash ,
360
- onchain_value_satoshis : Option < u64 > ,
360
+ htlc_value_satoshis : Option < u64 > ,
361
361
/// None in the second case, above, ie when there is no relevant output in the commitment
362
362
/// transaction which appeared on chain.
363
363
commitment_tx_output_idx : Option < u32 > ,
@@ -423,7 +423,7 @@ impl MaybeReadable for OnchainEventEntry {
423
423
impl_writeable_tlv_based_enum_upgradable ! ( OnchainEvent ,
424
424
( 0 , HTLCUpdate ) => {
425
425
( 0 , source, required) ,
426
- ( 1 , onchain_value_satoshis , option) ,
426
+ ( 1 , htlc_value_satoshis , option) ,
427
427
( 2 , payment_hash, required) ,
428
428
( 3 , commitment_tx_output_idx, option) ,
429
429
} ,
@@ -1689,7 +1689,7 @@ macro_rules! fail_unbroadcast_htlcs {
1689
1689
event: OnchainEvent :: HTLCUpdate {
1690
1690
source: ( * * source) . clone( ) ,
1691
1691
payment_hash: htlc. payment_hash. clone( ) ,
1692
- onchain_value_satoshis : Some ( htlc. amount_msat / 1000 ) ,
1692
+ htlc_value_satoshis : Some ( htlc. amount_msat / 1000 ) ,
1693
1693
commitment_tx_output_idx: None ,
1694
1694
} ,
1695
1695
} ;
@@ -2523,7 +2523,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2523
2523
// Produce actionable events from on-chain events having reached their threshold.
2524
2524
for entry in onchain_events_reaching_threshold_conf. drain ( ..) {
2525
2525
match entry. event {
2526
- OnchainEvent :: HTLCUpdate { ref source, payment_hash, onchain_value_satoshis , commitment_tx_output_idx } => {
2526
+ OnchainEvent :: HTLCUpdate { ref source, payment_hash, htlc_value_satoshis , commitment_tx_output_idx } => {
2527
2527
// Check for duplicate HTLC resolutions.
2528
2528
#[ cfg( debug_assertions) ]
2529
2529
{
@@ -2545,7 +2545,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2545
2545
payment_hash,
2546
2546
payment_preimage : None ,
2547
2547
source : source. clone ( ) ,
2548
- onchain_value_satoshis ,
2548
+ htlc_value_satoshis ,
2549
2549
} ) ) ;
2550
2550
if let Some ( idx) = commitment_tx_output_idx {
2551
2551
self . htlcs_resolved_on_chain . push ( IrrevocablyResolvedHTLC { commitment_tx_output_idx : idx, payment_preimage : None } ) ;
@@ -2887,7 +2887,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2887
2887
source,
2888
2888
payment_preimage : Some ( payment_preimage) ,
2889
2889
payment_hash,
2890
- onchain_value_satoshis : Some ( amount_msat / 1000 ) ,
2890
+ htlc_value_satoshis : Some ( amount_msat / 1000 ) ,
2891
2891
} ) ) ;
2892
2892
}
2893
2893
} else if offered_preimage_claim {
@@ -2908,7 +2908,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2908
2908
source,
2909
2909
payment_preimage : Some ( payment_preimage) ,
2910
2910
payment_hash,
2911
- onchain_value_satoshis : Some ( amount_msat / 1000 ) ,
2911
+ htlc_value_satoshis : Some ( amount_msat / 1000 ) ,
2912
2912
} ) ) ;
2913
2913
}
2914
2914
} else {
@@ -2926,7 +2926,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2926
2926
height,
2927
2927
event : OnchainEvent :: HTLCUpdate {
2928
2928
source, payment_hash,
2929
- onchain_value_satoshis : Some ( amount_msat / 1000 ) ,
2929
+ htlc_value_satoshis : Some ( amount_msat / 1000 ) ,
2930
2930
commitment_tx_output_idx : Some ( input. previous_output . vout ) ,
2931
2931
} ,
2932
2932
} ;
0 commit comments