From aaefa7b22ce255bee59963bfc337b6ff2f20ed56 Mon Sep 17 00:00:00 2001 From: "roman.khlopkov" <roman.khlopkov@demlabs.net> Date: Mon, 5 Aug 2024 12:46:56 +0300 Subject: [PATCH] [*] Autocollect status output fix --- dap-sdk | 2 +- modules/type/blocks/dap_chain_cs_blocks.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dap-sdk b/dap-sdk index 1d643ec8ae..0e4b729ab6 160000 --- a/dap-sdk +++ b/dap-sdk @@ -1 +1 @@ -Subproject commit 1d643ec8ae07a16b041bb25ce08ef6f39bac6b3a +Subproject commit 0e4b729ab659a7fc882b6df526cf2b9f87cdaaeb diff --git a/modules/type/blocks/dap_chain_cs_blocks.c b/modules/type/blocks/dap_chain_cs_blocks.c index ac085be108..dfbb80e479 100644 --- a/modules/type/blocks/dap_chain_cs_blocks.c +++ b/modules/type/blocks/dap_chain_cs_blocks.c @@ -1334,6 +1334,7 @@ static int s_cli_blocks(int a_argc, char ** a_argv, void **a_str_reply) return DAP_CHAIN_NODE_CLI_COM_BLOCK_PARAM_ERR; } json_object* json_obj_out = json_object_new_object(); + json_object_array_add(*json_arr_reply, json_obj_out); bool l_status = dap_chain_esbocs_get_autocollect_status(l_net->pub.id); char l_tmp_buff[150]={0}; sprintf(l_tmp_buff, "for network %s is %s\n", l_net->pub.name, @@ -1343,7 +1344,6 @@ static int s_cli_blocks(int a_argc, char ** a_argv, void **a_str_reply) break; s_print_autocollect_table(l_net, json_obj_out, "Fees"); s_print_autocollect_table(l_net, json_obj_out, "Rewards"); - json_object_array_add(*json_arr_reply, json_obj_out); } } break; -- GitLab