From 28f02e0c0ead16436ec16ef6a3e89e9e541517f3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 20 Dec 2017 06:42:41 +1030 Subject: [PATCH] wallet: use real feerates for withdraw rpc. Signed-off-by: Rusty Russell --- wallet/walletrpc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c index accb1b937..7afa4782f 100644 --- a/wallet/walletrpc.c +++ b/wallet/walletrpc.c @@ -191,9 +191,7 @@ static void json_withdraw(struct command *cmd, jsmntok_t *desttok, *sattok; struct withdrawal *withdraw; bool testnet; - /* FIXME: Read feerate and dustlimit */ - u32 feerate_per_kw = 15000; - //u64 dust_limit = 600; + u32 feerate_per_kw = get_feerate(cmd->ld->topology, FEERATE_NORMAL); u64 fee_estimate; struct utxo *utxos; struct ext_key ext;