Skip to content

Closing fee_range uses invalid max value #1071

Description

@t-bast

Hey,

I've been testing the quick close mechanism with the latest LDK, and there's one (small) incompatibility between eclair and rust-lightning. It's exactly similar to ElementsProject/lightning#4599 (comment). When rust-lightning doesn't care about the upper bound it sets max_fee_satoshis = 0xffffffffffffffff.

This is rejected by eclair, because we're strict on what values a satoshi field can hold. 0xffffffffffffffff is bigger than 21 million BTC so we consider it an invalid value. We could relax this but I'd like to avoid it if possible. That happens when rust-lightning is simply accepting a value inside eclair's proposed fee range, so I don't think it's necessary to set this to 0xffffffffffffffff, you could just return the same max_fee_satoshis you received.

WDYT?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions