mirror of
https://github.com/lightning/bolts.git
synced 2025-02-21 22:11:54 +01:00
Update 03-transactions.md
This commit is contained in:
parent
bc86304b4b
commit
0c649ea1c2
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ This details the exact format of on-chain transactions, which both sides need to
|
|||
## Transaction Output Ordering
|
||||
|
||||
Outputs in transactions are always sorted according to:
|
||||
* first according to their value (in whole satoshis, note that for HTLC outputs, the millisatoshi part must be ignored)
|
||||
* first according to their value, smallest first (in whole satoshis, note that for HTLC outputs, the millisatoshi part must be ignored)
|
||||
* followed by `scriptpubkey`, comparing the common-length prefix lexicographically as if by `memcmp`, then selecting the shorter script (if they differ in length),
|
||||
* finally, for HTLC outputs, in increasing `cltv_expiry` order.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue