Lightning: Why I can't find the implementation of towire_opening_funder()?

Created on 5 Sep 2018  路  2Comments  路  Source: ElementsProject/lightning

I find a function named towire_opening_funder() in opening_control.c锛宐ut I can't find it's code. Where is it?
Another question: If a node has more than one addressWould all the addresses been used to fund a channel or only one address?

question

Most helpful comment

These functions are generated automatically, from .csv files. Perform configure and make will create the files that contain the implementation. As they are automatically generated, it is usually not useful to see the content of the implementation, as it is more interesting to see the .csv files.

The .csv file will contain the "base name" of the message, and two functions fromwire_message_name and towire_message_name will be created from the .csv file.

Another question: If a node has more than one addressWould all the addresses been used to fund a channel or only one address?

If needed to fund the channel completely, yes.

All 2 comments

These functions are generated automatically, from .csv files. Perform configure and make will create the files that contain the implementation. As they are automatically generated, it is usually not useful to see the content of the implementation, as it is more interesting to see the .csv files.

The .csv file will contain the "base name" of the message, and two functions fromwire_message_name and towire_message_name will be created from the .csv file.

Another question: If a node has more than one addressWould all the addresses been used to fund a channel or only one address?

If needed to fund the channel completely, yes.

Closing since this seems to have been addressed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ldn2017 picture ldn2017  路  4Comments

igreshev picture igreshev  路  4Comments

brunoaduarte picture brunoaduarte  路  4Comments

AndiMacTen picture AndiMacTen  路  3Comments

gallizoltan picture gallizoltan  路  3Comments