Add IPv6 Support For P2P
Currently hived doesn't support ipv6 p2p nodes. This doesn't allow for hived to run in a purely ipv6 environment.
Adding a v6 only host in the config leads to a unknown host exception:
The host name can not be resolved: seed6.rishipanthee.com
{"hostname":"seed6.rishipanthee.com"}
p2p_plugin.cpp:66 resolve_string_to_ip_endpoints
{"endpoint_string":"seed6.rishipanthee.com:2001"}
p2p_plugin.cpp:75 resolve_string_to_ip_endpoints while adding seed node seed6.rishipanthee.com:2001
1617975ms p2p_plugin.cpp:434 plugin_initialize ] caught exception 0 exception: unspecified
process exited with: Host not found (authoritative)
{"message":"Host not found (authoritative)"}
asio.cpp:88 resolve_handler
And using a v6 address + port in config leads to a similar issue:
{"endpoint_string":"2001:db8::1:2001"}
p2p_plugin.cpp:75 resolve_string_to_ip_endpoints while adding seed node 2001:db8::1:2001
2016021ms p2p_plugin.cpp:434 plugin_initialize ] caught exception 0 exception: unspecified
process exited with: Host not found (authoritative)
{"message":"Host not found (authoritative)"}
asio.cpp:88 resolve_handler