Skip to content
Snippets Groups Projects
Commit be49a615 authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'hotfix-block-dump' into 'master'

Dump output fix

See merge request !2057
parents e846ccba a6065ad4
No related branches found
No related tags found
1 merge request!2057Dump output fix
Pipeline #50616 passed with stage
in 24 minutes and 5 seconds
...@@ -786,7 +786,7 @@ static int s_cli_blocks(int a_argc, char ** a_argv, void **a_str_reply) ...@@ -786,7 +786,7 @@ static int s_cli_blocks(int a_argc, char ** a_argv, void **a_str_reply)
// Header // Header
json_object* json_obj_inf = json_object_new_object(); json_object* json_obj_inf = json_object_new_object();
json_object_object_add(json_obj_inf, "Block number", json_object_new_uint64(l_block_cache->block_number)); json_object_object_add(json_obj_inf, "Block number", json_object_new_uint64(l_block_cache->block_number));
json_object_object_add(json_obj_inf, "hash", json_object_new_string(l_subcmd_str_arg)); json_object_object_add(json_obj_inf, "hash", json_object_new_string(l_hash_str));
snprintf(l_hexbuf, sizeof(l_hexbuf), "0x%04X",l_block->hdr.version); snprintf(l_hexbuf, sizeof(l_hexbuf), "0x%04X",l_block->hdr.version);
json_object_object_add(json_obj_inf, "version", json_object_new_string(l_hexbuf)); json_object_object_add(json_obj_inf, "version", json_object_new_string(l_hexbuf));
......
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