Skip to content

Closing fee_range uses invalid max value #1071

Closed

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

  1. TheBlueMatt commented on Sep 8, 2021

    @TheBlueMatt
    Collaborator

    Sure, happy to change it to whatever, though ideally the spec would say that we have to keep it within a range if you're gonna check for it - much more sustainable than opening issues on all the implementations :)

  2. t-bast commented on Sep 8, 2021

    @t-bast
    Author

    ideally the spec would say that we have to keep it within a range

    I agree, there's no obvious place in the spec right now where we could require that "all bitcoin amounts sent in LN messages must be <= 21 million btc", but I'll add this before the next spec meeting.

  3. rustyrussell commented on Sep 9, 2021

    @rustyrussell

    Set it to the channel size?

  4. TheBlueMatt commented on Sep 9, 2021

    @TheBlueMatt
    Collaborator
  5. added 2 commits that reference this issue on Sep 9, 2021
    d06da07
    b348d9c
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