Skip to content

Commit 2ee554a

Browse files
committed
Remove log for not changing feerate when it was equal
Log is not required in this case and creates unnecessary log lines at trace level.
1 parent 9de51f0 commit 2ee554a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/channelmanager.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -4725,8 +4725,10 @@ where
47254725
if !chan.context.is_outbound() { return NotifyOption::SkipPersistNoEvents; }
47264726
// If the feerate has decreased by less than half, don't bother
47274727
if new_feerate <= chan.context.get_feerate_sat_per_1000_weight() && new_feerate * 2 > chan.context.get_feerate_sat_per_1000_weight() {
4728-
log_trace!(self.logger, "Channel {} does not qualify for a feerate change from {} to {}.",
4728+
if new_feerate != chan.context.get_feerate_sat_per_1000_weight() {
4729+
log_trace!(self.logger, "Channel {} does not qualify for a feerate change from {} to {}.",
47294730
chan_id, chan.context.get_feerate_sat_per_1000_weight(), new_feerate);
4731+
}
47304732
return NotifyOption::SkipPersistNoEvents;
47314733
}
47324734
if !chan.context.is_live() {

0 commit comments

Comments
 (0)