Skip to content

Commit

Permalink
f Account for changed fields in PaymentForwarded
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Feb 16, 2024
1 parent 07c10bc commit cb3cbc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,10 @@ where
LdkEvent::PaymentForwarded {
prev_channel_id,
next_channel_id,
fee_earned_msat,
total_fee_earned_msat,
claim_from_onchain_tx,
outbound_amount_forwarded_msat,
..
} => {
let read_only_network_graph = self.network_graph.read_only();
let nodes = read_only_network_graph.nodes();
Expand Down Expand Up @@ -665,7 +666,7 @@ where
let to_next_str =
format!(" to {}{}", node_str(&next_channel_id), channel_str(&next_channel_id));

let fee_earned = fee_earned_msat.unwrap_or(0);
let fee_earned = total_fee_earned_msat.unwrap_or(0);
let outbound_amount_forwarded_msat = outbound_amount_forwarded_msat.unwrap_or(0);
if claim_from_onchain_tx {
log_info!(
Expand Down

0 comments on commit cb3cbc0

Please sign in to comment.