p2panda / aquadoggo

Node for the p2panda network handling validation, storage, aggregation and replication
GNU Affero General Public License v3.0
69 stars 5 forks source link

Accept string addresses in all configuration structs #613

Closed sandreae closed 2 months ago

sandreae commented 2 months ago

PR #612 introduced made it possible to pass arbitrary string addresses into the aquadoggo cli via args or a config file. Under the hood these are then parsed into socket addresses using to_socket_addrs() (including ip lookup if required) and then converted to Multiaddr if the lookup or parsing fails for any address the cli process exits.

We still require that addresses used in our programmatic configuration structs presented as Multiaddr. This means the above flow is still required when starting a node from within another application. I suggest the following steps to only require string addresses here as well.