Convert short_id to integer id with clightning backend before returning the graph

This commit is contained in:
nymkappa
2022-08-10 15:09:34 +02:00
parent 7012a480e8
commit 48a0a6c7e3
3 changed files with 3 additions and 7 deletions

View File

@@ -90,7 +90,7 @@ async function buildFullChannel(clChannelA: any, clChannelB: any): Promise<ILigh
const outputIdx = parts[2];
return {
channel_id: clChannelA.short_channel_id,
channel_id: convertChannelId(clChannelA.short_channel_id),
capacity: clChannelA.satoshis,
last_update: lastUpdate,
node1_policy: convertPolicy(clChannelA),
@@ -111,7 +111,7 @@ async function buildIncompleteChannel(clChannel: any): Promise<ILightningApi.Cha
const outputIdx = parts[2];
return {
channel_id: clChannel.short_channel_id,
channel_id: convertChannelId(clChannel.short_channel_id),
capacity: clChannel.satoshis,
last_update: clChannel.last_update ?? 0,
node1_policy: convertPolicy(clChannel),