1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00
BOLT: Basis of Lightning Technology (Lightning Network Specifications)
Go to file
Olaoluwa Osuntokun e3362410ac BOLT-03: make sats portion of HTLC CLTV tie-breaker more explicit
This commit is intended to fix an ambiguity in the spec that led to a
divergence in the sorting tie breaker between implementations, that can
lead to force closed transaction in practice. BIP 69 operates on the
output level, therefore it examines the _satoshi_ amount of a output
when sorting. The spec however, references BIP 69, but states that an
"identical" HTLC output may have the same `amount_msat` value.

In the wild this led to some implementations checking the _sat_ value of
an HTLC while others checked the _msat_ value. In the scenario where an
pair HTLC has the same _sat_ value, but differing _msat_ values, then
one will fall through to the tie-breaker, while the other while sort
them according to their _msat_ values.

In this commit, we attempt to make this requirement more explicit by
removing the reference to `msat`, and more explicitly describing when an
HTLC pair is to be considered identical.
2021-05-25 06:45:20 +09:30
bolt04 bolt04: minor JSON fix and generate the exact number of bytes for the padding 2020-01-24 18:17:10 +01:00
bolt07 Add test vector for extended queries 2019-09-16 22:36:59 +02:00
tools tlvs -> tlv_stream in extract-formats.py 2020-11-09 13:10:22 -06:00
.aspell.en.pws bolt-09: reserve feature bits for option_anchors_zero_fee_htlc_tx (#828) 2021-01-04 20:40:57 +01:00
.copy-edit-stylesheet-checklist.md Fix typos 2019-09-26 06:12:41 +00:00
.travis.yml spelling: check all the .md files 2019-07-28 07:03:19 +00:00
00-introduction.md Bolt 00: Added Internal Links to Glossary (#637) 2019-07-15 10:01:15 +02:00
01-messaging.md tlvs -> tlv_stream subsitution everywhere 2020-11-09 13:10:22 -06:00
02-peer-protocol.md per_commitment_secret must be a valid secret key 2021-03-31 14:28:36 +11:00
03-transactions.md BOLT-03: make sats portion of HTLC CLTV tie-breaker more explicit 2021-05-25 06:45:20 +09:30
04-onion-routing.md BOLT 4: remove space in formatting which prevented tools/extract-formats.py (#858) 2021-04-08 08:54:01 +02:00
05-onchain.md Require to claim revoked local output in its own penalty tx post-anchor (#803) 2020-12-07 19:52:00 +01:00
07-routing-gossip.md Gossip queries: sync complete is back (#826) 2021-02-15 21:37:06 +01:00
08-transport.md Replace RFC7539 with RFC8439 (#763) 2020-08-03 22:56:00 +02:00
09-features.md bolt-09: reserve feature bits for option_anchors_zero_fee_htlc_tx (#828) 2021-01-04 20:40:57 +01:00
10-dns-bootstrap.md BOLT 10 copy edit (#440) 2018-08-07 00:10:11 +00:00
11-payment-encoding.md Bolt 11: add distinct HRP prefix for Bitcoin signet (#844) 2021-03-02 09:16:36 +01:00
CONTRIBUTING.md CONTRIBUTING.md: first draft of how to write and change spec. 2019-07-28 07:03:19 +00:00
README.md Fix formatting of BOLT links 2018-01-22 14:02:01 +01:00

Lightning Network In-Progress Specifications

The specifications are currently a work-in-progress and currently being drafted.

Pull requests and comments welcome, seeking input from community stakeholders.

Discussion available on the lighting-dev mailing list.

Start here for Table of Contents

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.