Fix RPC client issues with talking to different nodes #611

Merged
serkixenos merged 67 commits from issue/son-for-hive-rpc-connection into develop 2021-11-30 19:14:38 +00:00
Showing only changes of commit 7f0900de57 - Show all commits

View file

@ -337,12 +337,12 @@ rpc_client::rpc_client(std::string url, uint32_t _port, std::string _user, std::
boost::algorithm::to_lower(schema);
try {
fc::ip::address(host); // try to convert host string to valid IPv4 address
fc::ip::address temp(host); // try to convert host string to valid IPv4 address
ip = host;
} catch (...) {
try {
ip = resolve_host_addr(host);
fc::ip::address(ip);
fc::ip::address temp(ip);
} catch (...) {
elog("Failed to resolve Hive node address ${ip}", ("ip", url));
FC_ASSERT(false);