Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Client - added debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Chen committed Jul 6, 2021
1 parent 865f913 commit 6246060
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ include(cmake/unity.cmake)
include(cmake/cjson.cmake)
include(cmake/uthash.cmake)
if(USE_REF_CRYPTO)
message("Crypto uses OpenSSL and external libs")
find_package(OpenSSL REQUIRED)
include(cmake/blake2.cmake)
include(cmake/ed25519_donna.cmake)
else()
message("Crypto uses libsodium")
include(cmake/sodium.cmake)
endif()
# include(cmake/base58.cmake)
Expand Down
5 changes: 1 addition & 4 deletions src/client/api/v1/send_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ int deser_send_message_response(char const* json_str, res_send_message_t* res) {
int send_message(iota_client_conf_t const* const conf, message_t* msg, res_send_message_t* res) {
int ret = -1;
long http_st_code = 0;
iota_str_t* cmd = NULL;
byte_buf_t* json_data = byte_buf_new();
byte_buf_t* node_res = byte_buf_new();
if (!json_data || !node_res) {
Expand All @@ -162,10 +161,8 @@ int send_message(iota_client_conf_t const* const conf, message_t* msg, res_send_
// serialize message
switch (msg->type) {
case MSG_PAYLOAD_TRANSACTION:
// TODO
break;
case MSG_PAYLOAD_MILESTONE:
// TODO
printf("[%s:%d] not supported, use send_core_message instead\n", __func__, __LINE__);
break;
case MSG_PAYLOAD_INDEXATION:
ret = serialize_indexation(msg, json_data);
Expand Down

0 comments on commit 6246060

Please sign in to comment.