Skip to content

CLTV tie-breaking doesn't seem to be working #4118

@t-bast

Description

@t-bast

I've been doing compatibility tests on lightning/bolts#491 (since we're very late to the party and never merged support for that in eclair 😨)

C-lightning correctly orders duplicates by cltv, but lnd-0.9.2-beta doesn't (I think it should, since #3142 appears to add that feature).

It's easy to repro. In an Alice -> Bob setting, have Alice send the following two HTLCs:

  • HTLC 1: amount1, paymentHash1, cltv1
  • HTLC 2: amount1, paymentHash1, cltv1 - 1

Bob will send the htlc signatures in the wrong order: (sig for HTLC 1, sig for HTLC 2).
It should send (sig for HTLC 2, sig for HTLC 1).

Metadata

Metadata

Assignees

Labels

HTLCbugUnintended code behaviourcommitmentsCommitment transactions containing the state of the channelspec

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions