Fetch funding tx for clightning channels

This commit is contained in:
nymkappa
2022-08-02 16:39:34 +02:00
parent 00cd3ee9bf
commit a25af16f7c
4 changed files with 29 additions and 18 deletions

View File

@@ -245,7 +245,7 @@ export default class CLightningClient extends EventEmitter implements AbstractLi
async $getNetworkGraph(): Promise<ILightningApi.NetworkGraph> {
const listnodes: any[] = await this.call('listnodes');
const listchannels: any[] = await this.call('listchannels');
const channelsList = convertAndmergeBidirectionalChannels(listchannels['channels']);
const channelsList = await convertAndmergeBidirectionalChannels(listchannels['channels']);
return {
nodes: listnodes['nodes'].map(node => convertNode(node)),