mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
ld: Use the local alias in the htlc_accepted
hook
If we have no real short-channel-id this is the best we can do. Use the local one since we can be sure we have assigned one.
This commit is contained in:
parent
d115d01105
commit
669bca4a02
1 changed files with 3 additions and 1 deletions
|
@ -1069,7 +1069,9 @@ static void htlc_accepted_hook_serialize(struct htlc_accepted_hook_payload *p,
|
|||
json_object_end(s);
|
||||
|
||||
json_object_start(s, "htlc");
|
||||
json_add_short_channel_id(s, "short_channel_id", hin->key.channel->scid);
|
||||
json_add_short_channel_id(
|
||||
s, "short_channel_id",
|
||||
channel_scid_or_local_alias(hin->key.channel));
|
||||
json_add_u64(s, "id", hin->key.id);
|
||||
if (deprecated_apis)
|
||||
json_add_amount_msat_only(s, "amount", hin->msat);
|
||||
|
|
Loading…
Add table
Reference in a new issue