Skip to content

Commit

Permalink
do not start fee estimation loop with option: --dev-override-fee-rates
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVrouwe authored and rustyrussell committed Aug 14, 2018
1 parent d309a7d commit 795e0e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lightningd/chaintopology.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,17 @@ void setup_topology(struct chain_topology *topo,

void begin_topology(struct chain_topology *topo)
{
/* Begin fee estimation. */
#if DEVELOPER
if (topo->dev_override_fee_rate) {
log_info(topo->log, "Fee estimation disabled because: "
"--dev-override-fee-rates");
} else {
/* Begin fee estimation. */
start_fee_estimate(topo);
}
#else
start_fee_estimate(topo);
#endif

try_extend_tip(topo);
}

0 comments on commit 795e0e1

Please sign in to comment.