Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[rpc] Add funding allocation map to listpeers command #2232
A redo of #2207
The point is the know the initial state of funding allocated to the channel by the funder / fundee. At the moment there are only one-sided channel opens, but dual-funded channels will be available in the near future
This change also implicitly let's you know who initiated the channel open, which was the original intent of #2207
Sure @niftynei !
The original intent of #2207 was to allow you to see if the the channel open was inbound or outbound, basically to know who funded the channel.
Christian then mentioned that dual funded channels are coming soon, so why not just have a map of channels id's -> initial channel state funding (what I have done here). From this information we can implicitly know who opened the channel, but also in the future know if it was dual-funded and what the initial state was.
I think this useful because it can allow you to see more rich stats on the 'progress' of your channel usage since it has been opened, along with
@niftynei : I added note to the CHANGELOG 31699f2, however for the
What do you think?