mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
lightningd: remove deprecated per_hop_v0 in htlc hook.
Changelog-Removed: JSON API: `htlc_accepted` hook `per_hop_v0` object removed (deprecated 0.8.0) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -987,17 +987,6 @@ static void htlc_accepted_hook_serialize(struct htlc_accepted_hook_payload *p,
|
||||
if (p->payload) {
|
||||
switch (p->payload->type) {
|
||||
case ONION_V0_PAYLOAD:
|
||||
if (deprecated_apis) {
|
||||
json_object_start(s, "per_hop_v0");
|
||||
json_add_string(s, "realm", "00");
|
||||
json_add_short_channel_id(s, "short_channel_id",
|
||||
p->payload->forward_channel);
|
||||
json_add_amount_msat_only(s, "forward_amount",
|
||||
p->payload->amt_to_forward);
|
||||
json_add_u64(s, "outgoing_cltv_value",
|
||||
p->payload->outgoing_cltv);
|
||||
json_object_end(s);
|
||||
}
|
||||
json_add_string(s, "type", "legacy");
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user