1
0
mirror of https://github.com/lightning/bolts.git synced 2025-01-19 05:33:37 +01:00

Specify that resolution of amount is msat

When the `p` multiplier is used, the amount MUST be divisible
by 10 since the resolution used internally is millisatoshi.

This addresses but does not close #692.
This commit is contained in:
Thorkil Værge 2019-11-14 08:38:53 +01:00 committed by GitHub
parent 35f6376f20
commit a5b3818204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
- MUST request `amount` divisible by ten if the `p` multiplier is used.
- SHOULD use the shortest representation possible, by using the largest
multiplier or omitting the multiplier.