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).
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:
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).