Skip to content
Snippets Groups Projects
Commit 638145cd authored by Roman Khlopkov's avatar Roman Khlopkov 🔜
Browse files

Merge branch 'release-5.3' of gitlab.demlabs.net:cellframe/cellframe-sdk into release-5.3

parents f9efa2a3 6b34f5d2
No related branches found
No related tags found
No related merge requests found
Pipeline #39259 passed with stage
in 8 minutes and 40 seconds
......@@ -1909,6 +1909,10 @@ static int s_cli_srv_stake_invalidate(int a_argc, char **a_argv, int a_arg_index
dap_cli_server_cmd_set_reply_text(a_str_reply, "Specified certificate not found");
return -18;
}
if (!l_cert->enc_key->priv_key_data || l_cert->enc_key->priv_key_data_size == 0) {
dap_cli_server_cmd_set_reply_text(a_str_reply, "It is not possible to invalidate a stake using a public key.");
return -31;
}
if (dap_chain_addr_fill_from_key(&l_signing_addr, l_cert->enc_key, l_net->pub.id)) {
dap_cli_server_cmd_set_reply_text(a_str_reply, "Specified certificate is wrong");
return -22;
......
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