Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUT-15: remove redundant boolean from setting #192

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions 15.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Here, `request` is the bolt11 Lightning invoice to be paid, `unit` is the unit t

## Mint info setting

The settings returned in the info endpoint ([NUT-06][06]) indicate that a mint supports this NUT. The mint MUST indicate each `method` and `unit` that supports `mpp`. It can indicate this in an array of objects for multiple `method` and `unit` pairs and the boolean flag `mpp` set to `true`.
The settings returned in the info endpoint ([NUT-06][06]) indicate that a mint supports this NUT. The mint MUST indicate each `method` and `unit` that supports mpp. It can indicate this in an array of objects for multiple `method` and `unit` pairs.

`MultipathPaymentSetting` is of the form:

Expand All @@ -49,8 +49,7 @@ The settings returned in the info endpoint ([NUT-06][06]) indicate that a mint s
[
{
"method": <str>,
"unit": <str>,
"mpp": <bool>
"unit": <str>
},
...
]
Expand All @@ -65,13 +64,11 @@ Example `MultipathPaymentSetting`:
"methods": [
{
"method": "bolt11",
"unit": "sat",
"mpp": true
"unit": "sat"
},
{
"method": "bolt11",
"unit": "usd",
"mpp": true
"unit": "usd"
}
]
}
Expand Down