Fix CLN channel short_id conversion
This commit is contained in:
1 parent
76a6ec7abf
commit
e8c982f815
2 files changed
+10
-4
No files matched your search
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user