alexbosworth / ln-service

Node.js interface to LND
MIT License
318 stars 61 forks source link

waiting_close_channels is not obtainable through getPendingChannels #172

Closed AmbossKeegan closed 1 year ago

AmbossKeegan commented 1 year ago

Versions

lnd: 0.16.2-beta bitcoind: 25.0.0 lightning: 9.4.0

Description

I would like to have access to the txid of the closing transaction. For example, in my screenshot below of ThunderHub, I have a pending close transaction, but no close_transaction_id on the response from getPendingChannels.

The channel is question for which I am looking to get a txid for, is within the waiting_close_channels array. get_pending_channels does return pending_channels but this does not include pending channels from the waiting_close_channels array.

I believe the fix needs to happen within this file: get_pending_channels.js

res contains the property I want (waiting_close_channels) but the function response only contains pending_channels.

Screen Shot 2023-06-06 at 12 57 55 PM
alexbosworth commented 1 year ago

please paste the result from res that you want to see represented?

alexbosworth commented 1 year ago

ok should be fixed now