Ride-The-Lightning / c-lightning-REST

REST APIs for Core Lightning written with node.js
MIT License
120 stars 43 forks source link

Add `opener` to listChannels for Core Lightning #141

Closed jamaljsr closed 2 years ago

jamaljsr commented 2 years ago

In the process of adding Core Lightning v0.12.0 to Polar, I discovered that the funding_allocation_msat field was deprecated some time ago and has now been removed. Polar used this field to determine if the channel was initially opened by the node. This PR removes the funding_allocation_msat field and adds the opener field which more suitable for my needs.

jamaljsr commented 2 years ago

Good point. I restored the funding_allocation_msat field. which won't break existing apps using older Core Lightning nodes.

ShahanaFarooqui commented 2 years ago

@jamaljsr Thank you for the PR. Merged in the release branch.