mirror of
https://github.com/lightning/bolts.git
synced 2025-01-19 05:33:37 +01:00
Merge pull request #700 from Sword-Smith/patch-3
Specify that resolution of amount is msat
This commit is contained in:
commit
17df7f2bba
@ -64,6 +64,7 @@ A writer:
|
||||
- if a specific minimum `amount` is required for successful payment:
|
||||
- MUST include that `amount`.
|
||||
- MUST encode `amount` as a positive decimal integer with no leading 0s.
|
||||
- If the `p` multiplier is used the `amount` the last decimal MUST be `0`.
|
||||
- SHOULD use the shortest representation possible, by using the largest
|
||||
multiplier or omitting the multiplier.
|
||||
|
||||
@ -89,6 +90,9 @@ Donation addresses often don't have an associated amount, so `amount`
|
||||
is optional in that case. Usually a minimum payment is required for
|
||||
whatever is being offered in return.
|
||||
|
||||
The `p` multiplier would allow to specify sub-millisatoshi amounts, which cannot be transferred on the network, since HTLCs are denominated in millisatoshis.
|
||||
Requiring a trailing `0` decimal ensures that the `amount` represents an integer number of millisatoshis.
|
||||
|
||||
# Data Part
|
||||
|
||||
The data part of a Lightning invoice consists of multiple sections:
|
||||
|
Loading…
Reference in New Issue
Block a user