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)
e3362410ac
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. |
||
---|---|---|
bolt04 | ||
bolt07 | ||
tools | ||
.aspell.en.pws | ||
.copy-edit-stylesheet-checklist.md | ||
.travis.yml | ||
00-introduction.md | ||
01-messaging.md | ||
02-peer-protocol.md | ||
03-transactions.md | ||
04-onion-routing.md | ||
05-onchain.md | ||
07-routing-gossip.md | ||
08-transport.md | ||
09-features.md | ||
10-dns-bootstrap.md | ||
11-payment-encoding.md | ||
CONTRIBUTING.md | ||
README.md |
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
This work is licensed under a Creative Commons Attribution 4.0 International License.