Skip to content

Logging (pathfind): Don't log [WRN] CRTR: Channel x has zero cltv delta #6069

@C-Otto

Description

@C-Otto

Background

Inspired by C-Otto/rebalance-lnd#241.

As part of pathfinding, lnd might encounter edges that have a policy specifying a zero CLTV delta (possibly because of no/outdated gossip?). Every time an edge like this is used in the pathfinding code, a warning is logged:

log.Warnf("Channel %v has zero cltv delta",

For nodes that query a lot of routes (for example when running rebalance-lnd), countless warnings are logged. These warnings don't seem to serve a proper purpose, as the user cannot do anything about it, and in my experience this also didn't cause any issues.

Your environment

  • lnd-0.14.1-beta
  • Linux server 5.10.0-8-amd64 #​1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
  • bitcoind v22

Steps to reproduce

Run QueryRoutes a few times.

Expected behaviour

Warning from issue title is not logged.

Actual behaviour

Warning from issue title is logged quite often.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to havebeginnerIssues suitable for new developersgood first issueIssues suitable for first time contributors to LNDloggingRelated to the logging / debug output functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions