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

Merge branch 'hotfix-9160' into 'master'

Hotfix 9160

See merge request !1269
parents 40787e92 107a5676
No related branches found
No related tags found
1 merge request!1269Hotfix 9160
Pipeline #29851 passed with stage
in 10 minutes and 4 seconds
...@@ -289,7 +289,7 @@ static enum error_code s_cli_hold(int a_argc, char **a_argv, int a_arg_index, da ...@@ -289,7 +289,7 @@ static enum error_code s_cli_hold(int a_argc, char **a_argv, int a_arg_index, da
return REINVEST_ARG_ERROR; return REINVEST_ARG_ERROR;
if (IS_ZERO_256(l_reinvest_percent)) { if (IS_ZERO_256(l_reinvest_percent)) {
int l_reinvest_percent_int = atoi(l_reinvest_percent_str); int l_reinvest_percent_int = atoi(l_reinvest_percent_str);
if (l_reinvest_percent_int <= 0 || l_reinvest_percent_int > 100) if (l_reinvest_percent_int < 0 || l_reinvest_percent_int > 100)
return REINVEST_ARG_ERROR; return REINVEST_ARG_ERROR;
l_reinvest_percent = dap_chain_uint256_from(l_reinvest_percent_int); l_reinvest_percent = dap_chain_uint256_from(l_reinvest_percent_int);
MULT_256_256(l_reinvest_percent, GET_256_FROM_64(1000000000000000000ULL), &l_reinvest_percent); MULT_256_256(l_reinvest_percent, GET_256_FROM_64(1000000000000000000ULL), &l_reinvest_percent);
...@@ -658,7 +658,7 @@ static void s_error_handler(enum error_code errorCode, dap_string_t *output_line ...@@ -658,7 +658,7 @@ static void s_error_handler(enum error_code errorCode, dap_string_t *output_line
} break; } break;
case REINVEST_ARG_ERROR: { case REINVEST_ARG_ERROR: {
dap_string_append_printf(output_line, "reinvestment is set as a percentage from 1 to 100"); dap_string_append_printf(output_line, "reinvestment is set as a percentage from 0 to 100");
} break; } break;
case FEE_ARG_ERROR: { case FEE_ARG_ERROR: {
......
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