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

@@ -202,10 +202,6 @@ export class Common {
/** Decodes a channel id returned by lnd as uint64 to a short channel id */
static channelIntegerIdToShortId(id: string): string {
if (config.LIGHTNING.BACKEND === 'cln') {
return id;
}
const n = BigInt(id);
return [
n >> 40n, // nth block