8000 [bug]: implement "fee spike buffer" from spec · Issue #7721 · lightningnetwork/lnd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[bug]: implement "fee spike buffer" from spec #7721
Closed
@C-Otto

Description

@C-Otto

A channel initialized by the local node can only receive funds if the local balance is high enough to pay additional on-chain fees for the added (incoming) HTLC in case we need to go on-chain (force close). If the local balance is too low (which can also happen if the on-chain fees rise), the channel is rather unusable: only dust amounts can be received until the local balance is high enough.

In this "low balance" situation, lnd complains when sending to a peer that initiated the channel. If the balance on the peer's side is too low, the local lnd does not allow forwarding of non-dust amounts:

[INF] LNWL: ChannelPoint(xxx:0): Reducing local balance (from 29xxxxxxxx mSAT to 353999 mSAT): remote side does not have enough funds (3510xxx mSAT < 3571000 mSAT) to pay for non-dust HTLC in case of unilateral close.

(In this example the peer only has 3,510 sat on their side, which is below the current threshold of 3,571 sat. Because of this, a forward of 2.9 million sat did not happen)

See #7108 and lightning/bolts#728 for a discussion of this. The solution according to lightning/bolts#740 is to implement a "fee spike buffer" so that nodes don't deplete their balance if this reduction could cause the channel to be unusable.

See #7717 for a mitigation idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0