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 <[email protected]>
  • Loading branch information
rustyrussell committed Jul 8, 2021
1 parent 5e3577e commit 52b1518
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lightningd/bitcoind.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ 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_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 52b1518

Please sign in to comment.