You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc: be explicit (with tests!) on when we don't know amount_msat for listsendpays.
Sangbida and I traced back through ancient history: when the pay plugin was introduced
in 0.9.0 (2019!) it already used the amount_msat parameter (then called `msatoshi`),
so this case effectively "never happens".
But we added a test for it just in case.
Signed-off-by: Rusty Russell <[email protected]>
Copy file name to clipboardExpand all lines: contrib/msggen/msggen/schema.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21942,7 +21942,7 @@
21942
21942
"amount_msat": {
21943
21943
"type": "msat",
21944
21944
"description": [
21945
-
"The amount of millisatoshi we intended to send to the destination."
21945
+
"The amount of millisatoshi we intended to send to the destination. This can only be missing in the case of someone manually calling sendonion without the `amount_msat` parameter (which no plugin currently does)."
21946
21946
]
21947
21947
},
21948
21948
"amount_sent_msat": {
@@ -24449,7 +24449,7 @@
24449
24449
"amount_msat": {
24450
24450
"type": "msat",
24451
24451
"description": [
24452
-
"The amount delivered to destination (if known)."
24452
+
"The amount delivered to destination (if known). This is not known in the case where sendonion(7) was used to manually initiate a payment without the `amount_msat` parameter."
Copy file name to clipboardExpand all lines: doc/schemas/listpays.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@
192
192
"amount_msat": {
193
193
"type": "msat",
194
194
"description": [
195
-
"The amount of millisatoshi we intended to send to the destination."
195
+
"The amount of millisatoshi we intended to send to the destination. This can only be missing in the case of someone manually calling sendonion without the `amount_msat` parameter (which no plugin currently does)."
Copy file name to clipboardExpand all lines: doc/schemas/listsendpays.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@
144
144
"amount_msat": {
145
145
"type": "msat",
146
146
"description": [
147
-
"The amount delivered to destination (if known)."
147
+
"The amount delivered to destination (if known). This is not known in the case where sendonion(7) was used to manually initiate a payment without the `amount_msat` parameter."
0 commit comments