Skip to content

Make PaymentParameters::max_total_cltv_expiry_delta a u16 #3913

Closed as not planned

Description

Activity

  1. added this to the 0.2 milestone on Jul 7, 2025
  2. TheBlueMatt commented on Sep 18, 2025

    @TheBlueMatt
    CollaboratorAuthor

    I don't think this is worth doing. I worked it through for the non-test changes at https://git.bitcoin.ninja/?p=rust-lightning;a=commit;h=d00a94a32b80903d4d251615ac6fa48ae25362fa but its a fairly large patchset and I haven't carefully checked that it doesn't break serialization somewhere by changing types. Finishing it would require quite a lot of integer conversion in tests.

    Closing this as not planned, FYI @tnull, since you're the one who requested this.

  3. TheBlueMatt commented on Sep 18, 2025

    @TheBlueMatt
    CollaboratorAuthor
  4. tnull commented on Sep 18, 2025

    @tnull
    Contributor

    Closing this as not planned, FYI @tnull, since you're the one who requested this.

    Okay, no super strong opinion on it. AFAIU we already had shipped it in 0.1 though, right?

  5. TheBlueMatt commented on Sep 18, 2025

    @TheBlueMatt
    CollaboratorAuthor

    No, #3890 was backported to 0.1 but left the public API alone, this issue was about cleaning up the public API since we now restrict the max CLTV delta to a u16 internally, even though the type is a u32.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions