mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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:
parent
adab9eb301
commit
30faf96efb
@ -196,6 +196,11 @@ 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])) {
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user