From 30faf96efb1c258c025b3675453fd0c64a569ad9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 8 Jul 2021 12:28:38 +0930 Subject: [PATCH] lightningd: don't complain about unable to estimate fees if not mainnet. 'force-feerates' already bypasses this logic, but we should still suppres Signed-off-by: Rusty Russell --- lightningd/bitcoind.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lightningd/bitcoind.c b/lightningd/bitcoind.c index 1adfe4710..ed309e2ac 100644 --- a/lightningd/bitcoind.c +++ b/lightningd/bitcoind.c @@ -196,9 +196,14 @@ static void estimatefees_callback(const char *buf, const jsmntok_t *toks, /* FIXME: We could trawl recent blocks for median fee... */ if (!json_to_u32(buf, feeratetok, &feerates[f])) { - log_unusual(call->bitcoind->log, - "Unable to estimate %s fees", - feerate_name(f)); + if (chainparams->testnet) + log_debug(call->bitcoind->log, + "Unable to estimate %s fees", + feerate_name(f)); + else + log_unusual(call->bitcoind->log, + "Unable to estimate %s fees", + feerate_name(f)); #if DEVELOPER /* This is needed to test for failed feerate estimates