Skip to content
Snippets Groups Projects
Commit 9e0ab1c6 authored by alexey.stratulat's avatar alexey.stratulat Committed by Roman Khlopkov
Browse files

[*] The dap_chain_net_id_from_str function has been moved out of the #if 0...

parent 92435ec2
2 merge requests!897hotfix-6925,!872[*] The dap_chain_net_id_from_str function has been moved out of the #if 0...
...@@ -115,6 +115,7 @@ dap_chain_addr_t* dap_chain_addr_from_str(const char *a_str) ...@@ -115,6 +115,7 @@ dap_chain_addr_t* dap_chain_addr_from_str(const char *a_str)
return NULL; return NULL;
} }
#if 0
/** /**
* @brief dap_chain_net_id_from_str * @brief dap_chain_net_id_from_str
* @param a_net_str * @param a_net_str
...@@ -125,13 +126,13 @@ dap_chain_net_id_t dap_chain_net_id_from_str(const char * a_net_str) ...@@ -125,13 +126,13 @@ dap_chain_net_id_t dap_chain_net_id_from_str(const char * a_net_str)
dap_chain_net_id_t l_ret={ 0 }; dap_chain_net_id_t l_ret={ 0 };
log_it(L_DEBUG, "net id: %s", a_net_str); log_it(L_DEBUG, "net id: %s", a_net_str);
a_net_str += 2;
if (!(l_ret.uint64 = strtoll(a_net_str, NULL, 0))) { if (!(l_ret.uint64 = strtoll(a_net_str, NULL, 0))) {
log_it(L_ERROR, "Wrong input string \"%s\" not recognized as network id", a_net_str); log_it(L_ERROR, "Wrong input string \"%s\" not recognized as network id", a_net_str);
return l_ret; return l_ret;
} }
return l_ret; return l_ret;
} }
#endif
/** /**
* @brief dap_chain_net_srv_uid_from_str * @brief dap_chain_net_srv_uid_from_str
......
...@@ -242,7 +242,9 @@ size_t dap_chain_hash_slow_to_str(dap_chain_hash_slow_t * a_hash, char * a_str, ...@@ -242,7 +242,9 @@ size_t dap_chain_hash_slow_to_str(dap_chain_hash_slow_t * a_hash, char * a_str,
char* dap_chain_addr_to_str(const dap_chain_addr_t *a_addr); char* dap_chain_addr_to_str(const dap_chain_addr_t *a_addr);
dap_chain_addr_t* dap_chain_addr_from_str(const char *str); dap_chain_addr_t* dap_chain_addr_from_str(const char *str);
#if 0
dap_chain_net_id_t dap_chain_net_id_from_str(const char* a_str); dap_chain_net_id_t dap_chain_net_id_from_str(const char* a_str);
#endif
dap_chain_net_srv_uid_t dap_chain_net_srv_uid_from_str(const char* a_str); dap_chain_net_srv_uid_t dap_chain_net_srv_uid_from_str(const char* a_str);
void dap_chain_addr_fill(dap_chain_addr_t *a_addr, dap_sign_type_t a_type, dap_chain_hash_fast_t *a_pkey_hash, dap_chain_net_id_t a_net_id); void dap_chain_addr_fill(dap_chain_addr_t *a_addr, dap_sign_type_t a_type, dap_chain_hash_fast_t *a_pkey_hash, dap_chain_net_id_t a_net_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment