From cb3cbc047edc784225d22236f7323e85af54cdad Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 7 Feb 2024 13:18:51 +0100 Subject: [PATCH] f Account for changed fields in `PaymentForwarded` --- src/event.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/event.rs b/src/event.rs index 70b49610f..a417cfb5f 100644 --- a/src/event.rs +++ b/src/event.rs @@ -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(); @@ -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!(