From 8594f6e36945031051d778e6b6a43f144be509d9 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Sat, 9 Mar 2019 21:20:13 +0100 Subject: [PATCH] htlc: forward channel specific fee settings --- lightningd/peer_htlcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index acc2e6a28..5894441fc 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -514,8 +514,8 @@ static void forward_htlc(struct htlc_in *hin, * - fee_base_msat + ( amount_to_forward * fee_proportional_millionths / 1000000 ) */ if (!amount_msat_fee(&fee, amt_to_forward, - ld->config.fee_base, - ld->config.fee_per_satoshi)) { + next->feerate_base, + next->feerate_ppm)) { log_broken(ld->log, "Fee overflow forwarding %s!", type_to_string(tmpctx, struct amount_msat, &amt_to_forward));