mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
common: enforce that msat fields are called "xxx_msat".
Now we've fixed them all, make sure no new ones slip in! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1825,7 +1825,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user