From a867704d99751f1f37deb80cf2587e2d3c280131 Mon Sep 17 00:00:00 2001 From: Andrei <92177534+andrei-21@users.noreply.github.com> Date: Mon, 15 May 2023 15:47:40 +0100 Subject: [PATCH] Swap payment hash and preimage for `payment_sent()` callback (#364) Tested manually with `make run-3l` --- eel/src/event_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eel/src/event_handler.rs b/eel/src/event_handler.rs index 5ae692e8..5ba8a172 100644 --- a/eel/src/event_handler.rs +++ b/eel/src/event_handler.rs @@ -184,8 +184,8 @@ impl EventHandler for LipaEventHandler { error!("Failed to persist in the payment db that sending payment with hash {} has succeeded", payment_hash.0.to_hex()); } self.user_event_handler.payment_sent( - payment_preimage.0.to_hex(), payment_hash.0.to_hex(), + payment_preimage.0.to_hex(), fee_paid_msat, ); }