Skip to content

Commit

Permalink
BOLT 3: add test vectors for htlc-transactions in case where CLTV is …
Browse files Browse the repository at this point in the history
…used as tie-breaker for sorting (#539)

Add a serialized transactions test vector for the edge case of sorting htlc-timeout-tx
when there are multiple offered htlc with the same amount and preimage.

The test vector reuses previous preimages and creates a case scenario with 1 received htlc
and 2 offered, the two offered will have same scriptPubKey and redeemScript, but different CLTV value.

It is asserted the order in which the htlc transactions should be kept internally
and we assume the same order is used to construct the commitment_signed message.
This complements #491 .
  • Loading branch information
araspitzu authored Mar 5, 2021
1 parent 80c1ae1 commit b201efe
Showing 1 changed file with 429 additions and 2 deletions.
Loading

0 comments on commit b201efe

Please sign in to comment.