Skip to content

Commit 795e0e1

Browse files
SimonVrouwerustyrussell
authored andcommitted
do not start fee estimation loop with option: --dev-override-fee-rates
1 parent d309a7d commit 795e0e1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lightningd/chaintopology.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,17 @@ void setup_topology(struct chain_topology *topo,
727727

728728
void begin_topology(struct chain_topology *topo)
729729
{
730-
/* Begin fee estimation. */
730+
#if DEVELOPER
731+
if (topo->dev_override_fee_rate) {
732+
log_info(topo->log, "Fee estimation disabled because: "
733+
"--dev-override-fee-rates");
734+
} else {
735+
/* Begin fee estimation. */
736+
start_fee_estimate(topo);
737+
}
738+
#else
731739
start_fee_estimate(topo);
740+
#endif
732741

733742
try_extend_tip(topo);
734743
}

0 commit comments

Comments
 (0)