Import json topology

This commit is contained in:
nymkappa committed 2022-08-18 11:06:20 +02:00
1 parent 440683f994
commit 678bf009ea
3 files changed
+66 -31

No files matched your search

+4
View File
@@ -207,6 +207,10 @@ export class Common {
/** Decodes a channel id returned by lnd as uint64 to a short channel id */
static channelIntegerIdToShortId(id: string): string {
if (id.indexOf('/') !== -1) {
id = id.slice(0, -2);
}
if (id.indexOf('x') !== -1) { // Already a short id
return id;
}