Another hotfix for CLN crash
This commit is contained in:
parent
02f361af73
commit
caa8cfbc0e
@ -217,7 +217,7 @@ async function buildFullChannel(clChannelA: any, clChannelB: any): Promise<ILigh
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
channel_id: Common.channelShortIdToIntegerId(clChannelA.short_channel_id),
|
channel_id: Common.channelShortIdToIntegerId(clChannelA.short_channel_id),
|
||||||
capacity: clChannelA.satoshis,
|
capacity: (clChannelA.amount_msat / 1000).toString(),
|
||||||
last_update: lastUpdate,
|
last_update: lastUpdate,
|
||||||
node1_policy: convertPolicy(clChannelA),
|
node1_policy: convertPolicy(clChannelA),
|
||||||
node2_policy: convertPolicy(clChannelB),
|
node2_policy: convertPolicy(clChannelB),
|
||||||
@ -241,7 +241,7 @@ async function buildIncompleteChannel(clChannel: any): Promise<ILightningApi.Cha
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
channel_id: Common.channelShortIdToIntegerId(clChannel.short_channel_id),
|
channel_id: Common.channelShortIdToIntegerId(clChannel.short_channel_id),
|
||||||
capacity: clChannel.satoshis,
|
capacity: (clChannel.amount_msat / 1000).toString(),
|
||||||
last_update: clChannel.last_update ?? 0,
|
last_update: clChannel.last_update ?? 0,
|
||||||
node1_policy: convertPolicy(clChannel),
|
node1_policy: convertPolicy(clChannel),
|
||||||
node2_policy: null,
|
node2_policy: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user