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?
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.
Most helpful comment
These functions are generated automatically, from
.csvfiles. Performconfigureandmakewill 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.csvfiles.The
.csvfile will contain the "base name" of the message, and two functionsfromwire_message_nameandtowire_message_namewill be created from the.csvfile.If needed to fund the channel completely, yes.