lightnind: cleanup not necessary logs

This is just housekeeping that allows up
to do not spam the logs of people with not
useful information.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo 2023-06-07 11:58:39 +02:00 committed by Rusty Russell
parent e993818ffe
commit 011f3c1e14
2 changed files with 3 additions and 11 deletions

View file

@ -470,19 +470,11 @@ static void smooth_one_feerate(const struct chain_topology *topo,
/* But to avoid updating forever, only apply smoothing when its
* effect is more then 10 percent */
if (abs((int)rate->rate - (int)feerate_smooth) > (0.1 * rate->rate)) {
if (abs((int)rate->rate - (int)feerate_smooth) > (0.1 * rate->rate))
rate->rate = feerate_smooth;
log_debug(topo->log,
"... polled feerate estimate for %u blocks smoothed to %u (alpha=%.2f)",
rate->blockcount, rate->rate, alpha);
}
if (rate->rate < get_feerate_floor(topo)) {
if (rate->rate < get_feerate_floor(topo))
rate->rate = get_feerate_floor(topo);
log_debug(topo->log,
"... feerate estimate for %u blocks hit floor %u",
rate->blockcount, rate->rate);
}
if (rate->rate != feerate_smooth)
log_debug(topo->log,

View file

@ -2593,7 +2593,7 @@ def test_onchain_all_dust(node_factory, bitcoind, executor):
# Make l1's fees really high (and wait for it to exceed 50000)
l1.set_feerates((1000000, 1000000, 1000000, 1000000))
l1.daemon.wait_for_log('feerate estimate for 6 blocks smoothed to [56789][0-9]{4}')
wait_for(lambda: all(e['smoothed_feerate'] > 50000 for e in l1.rpc.feerates('perkw')['perkw']['estimates']))
bitcoind.generate_block(1)
l1.daemon.wait_for_log(' to ONCHAIN')