From 6bd02c547b0efbae00d5fadd5595e3f58c3769d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Granh=C3=A3o?= Date: Tue, 3 Oct 2023 16:39:57 +0100 Subject: [PATCH] Fix maxfee_percent integer division --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 35ddf7eb..8a414b01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -281,7 +281,7 @@ impl LightningNode { breez_config.working_dir = config.local_persistence_path.clone(); // TODO configure `exemptfee` when exposed by Breez - breez_config.maxfee_percent = (MAX_FEE_PERMYRIAD / 100).into(); + breez_config.maxfee_percent = MAX_FEE_PERMYRIAD as f64 / 100_f64; let sdk = rt .handle()