Fix CLN channel short_id conversion

This commit is contained in:
nymkappa
2022-08-08 07:50:50 +02:00
parent 82bcac7c74
commit 1d106a9851
2 changed files with 10 additions and 4 deletions

View File

@@ -430,10 +430,13 @@ class NetworkSyncService {
}
private toIntegerId(id: string): string {
if (config.LIGHTNING.BACKEND === 'lnd') {
if (config.LIGHTNING.BACKEND === 'cln') {
return convertChannelId(id);
}
else if (config.LIGHTNING.BACKEND === 'lnd') {
return id;
}
return convertChannelId(id);
return '';
}
/** Decodes a channel id returned by lnd as uint64 to a short channel id */