-
Notifications
You must be signed in to change notification settings - Fork 912
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
paystatus: remove doubled amount_msat. #4911
paystatus: remove doubled amount_msat. #4911
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack 105b096
my proposal would be to replace both these amount_msat lines with the following line: json_add_amount_msat_compat(ret, p->amount, "msatoshi", "amount_msat"); This generates two fields, one as string and one as integer, both msat. |
The "msatoshi" fields are being slowly deprecated, though. The intention is that all amounts are explicitly "msat" (we had errors early on when amounts were specified differently in different places). |
So no integer field is wanted? |
Correct, the intent is to always use a string with an explicit unit. |
It's always been there: ``` { "pay": [ { "bolt11": "...", "amount_msat": "1000msat", "amount_msat": "1000msat", "destination": "03...", "attempts": [ { "strategy": "Initial attempt", "start_time": "2021-11-06T04:20:20.135Z", "age_in_seconds": 229032, "end_time": "2021-11-06T04:20:27.792Z", "state": "completed", "success": { "id": 31994, "payment_preimage": "..." } } ] } ] } ``` Reported-by: denis2342 on IRC Changelog-Fixed: JSON-RPC: `paystatus` entries no longer have two identical `amount_msat` entries. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
105b096
to
9fbcc16
Compare
Trivial rebase on master. Ack 9fbcc16 |
It's always been there:
Reported-by: denis2342 on IRC
Changelog-Fixed: JSON-RPC:
paystatus
entries no longer have two identicalamount_msat
entries.Signed-off-by: Rusty Russell rusty@rustcorp.com.au