Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
d2628df1
Commit
d2628df1
authored
1 year ago
by
Constantin P.
💬
Browse files
Options
Downloads
Plain Diff
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
!1269
Hotfix 9160
Pipeline
#29851
passed with stage
Stage: build
in 10 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/service/stake/dap_chain_net_srv_stake_lock.c
+2
-2
2 additions, 2 deletions
modules/service/stake/dap_chain_net_srv_stake_lock.c
with
2 additions
and
2 deletions
modules/service/stake/dap_chain_net_srv_stake_lock.c
+
2
−
2
View file @
d2628df1
...
@@ -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
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment