From d44088db8386121a49115567072dbecf746bbfdf Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 21 Nov 2017 14:03:54 +1030 Subject: [PATCH] fund-channel: use real feerate. Signed-off-by: Rusty Russell --- lightningd/peer_control.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 60d335aec..bfc6384f8 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -2576,9 +2576,10 @@ static void json_fund_channel(struct command *cmd, fc->push_msat = 0; /* Try to do this now, so we know if insufficient funds. */ - /* FIXME: Feerate & dustlimit */ + /* FIXME: dustlimit */ fc->utxomap = build_utxos(fc, cmd->ld, fc->funding_satoshi, - 15000, 600, &fc->change, &fc->change_keyindex); + get_feerate(cmd->ld->topology, FEERATE_NORMAL), + 600, &fc->change, &fc->change_keyindex); if (!fc->utxomap) { command_fail(cmd, "Cannot afford funding transaction"); return;