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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-07-08 12:28:38 +09:30
parent adab9eb301
commit 30faf96efb
1 changed files with 8 additions and 3 deletions

View File

@ -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