mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
pay: use amount_msat for amount report inside attempts.
Nobody really parses this though, fortunately. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: JSON-RPC: `pay` `attempts` `amount_msat` field. Changelog-Deprecated: JSON-RPC: `pay` `attempts` `amount` field (use `amount_msat`).
This commit is contained in:
parent
f6b4dbc65a
commit
f117225436
1 changed files with 3 additions and 1 deletions
|
@ -642,7 +642,9 @@ static void payment_add_attempt(struct json_stream *s, const char *fieldname, st
|
|||
json_add_string(s, "failreason", p->failreason);
|
||||
|
||||
json_add_u64(s, "partid", p->partid);
|
||||
json_add_amount_msat_only(s, "amount", p->amount);
|
||||
if (deprecated_apis)
|
||||
json_add_amount_msat_only(s, "amount", p->amount);
|
||||
json_add_amount_msat_only(s, "amount_msat", p->amount);
|
||||
if (p->parent != NULL)
|
||||
json_add_u64(s, "parent_partid", p->parent->partid);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue