1
0
Fork 0
mirror of https://github.com/lightning/bolts.git synced 2025-03-13 11:35:41 +01:00

Revert using nSequence=0xFFFFFFFD for HTLCs

HTLC transactions don't benefit from the wider network's anonymity set,
so we can stick to `0` as we did previously.
This commit is contained in:
t-bast 2025-02-25 09:31:07 +01:00
parent c1110b14d0
commit 8cc6d243c0
No known key found for this signature in database
GPG key ID: 34F377B0100ED6BB

View file

@ -363,7 +363,7 @@ These HTLC transactions are almost identical, except the HTLC-timeout transactio
* locktime: `0` for HTLC-success, `cltv_expiry` for HTLC-timeout
* txin count: 1
* `txin[0]` outpoint: `txid` of the commitment transaction and `output_index` of the matching HTLC output for the HTLC transaction
* `txin[0]` sequence: `1` for `option_anchors`, `0xFFFFFFFD` for `zero_fee_commitments`, `0` otherwise
* `txin[0]` sequence: `1` for `option_anchors`, `0` otherwise
* `txin[0]` script bytes: `0`
* `txin[0]` witness stack: `0 <remotehtlcsig> <localhtlcsig> <payment_preimage>` for HTLC-success, `0 <remotehtlcsig> <localhtlcsig> <>` for HTLC-timeout
* txout count: 1