Browse Source

chaintopology: add debug message when we're adjusting due to feerate floor.

But only if we're actually going to change the feerate, otherwise we'd
log every time.

Suggested-by: @ZmnSCPxj
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
8966a175ee
  1. 7
      lightningd/chaintopology.c

7
lightningd/chaintopology.c

@ -324,10 +324,15 @@ static void update_feerates(struct bitcoind *bitcoind,
if (feerate < feerate_floor())
feerate = feerate_floor();
if (feerate != topo->feerate[i])
if (feerate != topo->feerate[i]) {
log_debug(topo->log, "%s feerate %u (was %u)",
feerate_name(i),
feerate, topo->feerate[i]);
if (feerate != satoshi_per_kw[i])
log_debug(topo->log,
"...feerate %u hit floor %u",
satoshi_per_kw[i], feerate);
}
old_feerates[i] = topo->feerate[i];
topo->feerate[i] = feerate;
}

Loading…
Cancel
Save