Skip to content

Commit

Permalink
lightningd: don't complain about unable to estimate fees if not mainnet.
Browse files Browse the repository at this point in the history
'force-feerates' already bypasses this logic, but we should still suppres

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jul 8, 2021
1 parent adab9eb commit 30faf96
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lightningd/bitcoind.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30faf96

Please sign in to comment.