global: remove deprecated non-msat-named msat fields.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Removed: JSON-RPC: all the non-msat-named millisatoshi fields deprecated in v0.12.0.
This commit is contained in:
Rusty Russell
2023-03-14 15:49:50 +10:30
parent 67f23c19f7
commit 780f32dfc6
27 changed files with 95 additions and 287 deletions

View File

@@ -104,7 +104,7 @@ static void json_add_route_hop(struct json_stream *js,
json_add_node_id(js, "id", &r->node_id);
json_add_short_channel_id(js, "channel", &r->scid);
json_add_num(js, "direction", r->direction);
json_add_amount_msat_compat(js, r->amount, "msatoshi", "amount_msat");
json_add_amount_msat(js, "amount_msat", r->amount);
json_add_num(js, "delay", r->delay);
json_add_string(js, "style", "tlv");
json_object_end(js);
@@ -256,8 +256,7 @@ static void json_add_halfchan(struct json_stream *response,
&htlc_minimum_msat,
&htlc_maximum_msat);
json_add_amount_sat_compat(response, capacity,
"satoshis", "amount_msat");
json_add_amount_sat_msat(response, "amount_msat", capacity);
json_add_num(response, "message_flags", message_flags);
json_add_num(response, "channel_flags", channel_flags);