@@ -783,7 +783,7 @@ pub enum Event {
783
783
/// The outgoing channel between the next node and us. This is only `None` for events
784
784
/// generated or serialized by versions prior to 0.0.107.
785
785
next_channel_id : Option < ChannelId > ,
786
- /// The fee, in milli-satoshis, which was earned as a result of the payment.
786
+ /// The total fee, in milli-satoshis, which was earned as a result of the payment.
787
787
///
788
788
/// Note that if we force-closed the channel over which we forwarded an HTLC while the HTLC
789
789
/// was pending, the amount the next hop claimed will have been rounded down to the nearest
@@ -794,15 +794,15 @@ pub enum Event {
794
794
/// If the channel which sent us the payment has been force-closed, we will claim the funds
795
795
/// via an on-chain transaction. In that case we do not yet know the on-chain transaction
796
796
/// fees which we will spend and will instead set this to `None`. It is possible duplicate
797
- /// `PaymentForwarded` events are generated for the same payment iff `fee_earned_msat ` is
797
+ /// `PaymentForwarded` events are generated for the same payment iff `total_fee_earned_msat ` is
798
798
/// `None`.
799
- fee_earned_msat : Option < u64 > ,
799
+ total_fee_earned_msat : Option < u64 > ,
800
800
/// If this is `true`, the forwarded HTLC was claimed by our counterparty via an on-chain
801
801
/// transaction.
802
802
claim_from_onchain_tx : bool ,
803
803
/// The final amount forwarded, in milli-satoshis, after the fee is deducted.
804
804
///
805
- /// The caveat described above the `fee_earned_msat ` field applies here as well.
805
+ /// The caveat described above the `total_fee_earned_msat ` field applies here as well.
806
806
outbound_amount_forwarded_msat : Option < u64 > ,
807
807
} ,
808
808
/// Used to indicate that a channel with the given `channel_id` is being opened and pending
@@ -1083,12 +1083,12 @@ impl Writeable for Event {
1083
1083
} ) ;
1084
1084
}
1085
1085
& Event :: PaymentForwarded {
1086
- fee_earned_msat , prev_channel_id, claim_from_onchain_tx,
1086
+ total_fee_earned_msat , prev_channel_id, claim_from_onchain_tx,
1087
1087
next_channel_id, outbound_amount_forwarded_msat
1088
1088
} => {
1089
1089
7u8 . write ( writer) ?;
1090
1090
write_tlv_fields ! ( writer, {
1091
- ( 0 , fee_earned_msat , option) ,
1091
+ ( 0 , total_fee_earned_msat , option) ,
1092
1092
( 1 , prev_channel_id, option) ,
1093
1093
( 2 , claim_from_onchain_tx, required) ,
1094
1094
( 3 , next_channel_id, option) ,
@@ -1384,20 +1384,20 @@ impl MaybeReadable for Event {
1384
1384
} ,
1385
1385
7u8 => {
1386
1386
let f = || {
1387
- let mut fee_earned_msat = None ;
1387
+ let mut total_fee_earned_msat = None ;
1388
1388
let mut prev_channel_id = None ;
1389
1389
let mut claim_from_onchain_tx = false ;
1390
1390
let mut next_channel_id = None ;
1391
1391
let mut outbound_amount_forwarded_msat = None ;
1392
1392
read_tlv_fields ! ( reader, {
1393
- ( 0 , fee_earned_msat , option) ,
1393
+ ( 0 , total_fee_earned_msat , option) ,
1394
1394
( 1 , prev_channel_id, option) ,
1395
1395
( 2 , claim_from_onchain_tx, required) ,
1396
1396
( 3 , next_channel_id, option) ,
1397
1397
( 5 , outbound_amount_forwarded_msat, option) ,
1398
1398
} ) ;
1399
1399
Ok ( Some ( Event :: PaymentForwarded {
1400
- fee_earned_msat , prev_channel_id, claim_from_onchain_tx, next_channel_id,
1400
+ total_fee_earned_msat , prev_channel_id, claim_from_onchain_tx, next_channel_id,
1401
1401
outbound_amount_forwarded_msat
1402
1402
} ) )
1403
1403
} ;
0 commit comments